fix: a redeploy's short database outage no longer takes the API down
Sentry DTF-API-2..7 (redeploy of 5a7fc0f, 13/11): the name db did not
resolve for about 12 s; the new API exited at startup and the worker and
audit() logged the error every second. The API now waits up to 90 s with
a backoff, the worker reports an outage once and backs off to 15 s, the
audit persistence error is logged at most once a minute, and api, site
and kanban update start-first so the old container serves meanwhile.
Built by Bobina.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -253,6 +253,7 @@ services:
|
||||
start_period: 30s
|
||||
deploy:
|
||||
replicas: 1
|
||||
update_config: {order: start-first, failure_action: rollback}
|
||||
restart_policy: {condition: on-failure, delay: 5s}
|
||||
|
||||
worker:
|
||||
@@ -332,6 +333,7 @@ services:
|
||||
start_period: 15s
|
||||
deploy:
|
||||
replicas: 1
|
||||
update_config: {order: start-first, failure_action: rollback}
|
||||
restart_policy: {condition: on-failure, delay: 5s}
|
||||
|
||||
kanban:
|
||||
@@ -358,6 +360,7 @@ services:
|
||||
start_period: 15s
|
||||
deploy:
|
||||
replicas: 1
|
||||
update_config: {order: start-first, failure_action: rollback}
|
||||
restart_policy: {condition: on-failure, delay: 5s}
|
||||
|
||||
configs:
|
||||
|
||||
Reference in New Issue
Block a user