chore(compose): no healthcheck on the database (#5275)
#5275 "steward_db killed by its healthcheck twice": on NFS, pg_isready timed out during slow writes and the orchestrator killed a healthy database. The operator removed it from the live stack and ruled that Steward doesn't ship one. Steward waits for the database itself (60 s at startup, retries per request), so depends_on needs no health condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-7
@@ -39,8 +39,7 @@ services:
|
|||||||
# mount, pin STEWARD_SECRET_KEY (env or a docker secret) instead, so the key
|
# mount, pin STEWARD_SECRET_KEY (env or a docker secret) instead, so the key
|
||||||
# never depends on filesystem ownership being correct on every node.
|
# never depends on filesystem ownership being correct on every node.
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
- db
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
db:
|
db:
|
||||||
@@ -54,11 +53,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
# No host port published — db is reachable only on the backend network.
|
# No host port published — db is reachable only on the backend network.
|
||||||
healthcheck:
|
# No healthcheck: a slow disk (NFS) failed pg_isready and the orchestrator
|
||||||
test: ["CMD-SHELL", "pg_isready -U steward"]
|
# killed a healthy database mid-write (#5275). Steward waits for the
|
||||||
interval: 5s
|
# database itself, at startup and per request (steward/database.py).
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
+4
-7
@@ -27,8 +27,7 @@ services:
|
|||||||
- STEWARD_SECRET_KEY=dev-secret-key-change-me
|
- STEWARD_SECRET_KEY=dev-secret-key-change-me
|
||||||
- PYTHONPATH=/app
|
- PYTHONPATH=/app
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
- db
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
db:
|
db:
|
||||||
@@ -42,11 +41,9 @@ services:
|
|||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
healthcheck:
|
# No healthcheck: a slow disk (NFS) failed pg_isready and the orchestrator
|
||||||
test: ["CMD-SHELL", "pg_isready -U steward"]
|
# killed a healthy database mid-write (#5275). Steward waits for the
|
||||||
interval: 5s
|
# database itself, at startup and per request (steward/database.py).
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user