Give shepherd_db's healthcheck a start_period so slow boots don't fail the stack - #141
Merged
Merged
Conversation
…l the stack `docker compose up` intermittently died with "dependency shepherd_db failed to start". The DB healthcheck had no start_period, so Docker counted probe failures from container start: 5 retries x 2s marked Postgres unhealthy about 10s in, which is often before it has even begun accepting connections. The "FATAL: the database system is starting up" line in the logs is a probe being correctly rejected mid-recovery, and it lands on the last retry. Also probe 127.0.0.1 instead of the default Unix socket. On a first run the postgres entrypoint starts a temporary socket-only server to apply init_db.sql; a socket probe reports ready against that, dependents connect, and the entrypoint then shuts it down under them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQeAtdPFUgZ1BTB3UB6oXc
Codecov Report✅ All modified and coverable lines are covered by tests. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.