fix(embeddings): raise healthcheck start_period from 120s to 600s#1028
Merged
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom Apr 27, 2026
Merged
Conversation
The TEI image downloads the default embedding model (BAAI/bge-base-en-v1.5, ~115 MB) from HuggingFace Hub at first start. On slow residential connections (<=5 Mbps) the download exceeds the existing 120s grace window plus 5x30s retry budget, causing spurious "unhealthy" flips and restart loops during an otherwise progressing first install. 600s accommodates slow-connection first-install downloads while leaving the post-warmup 30s x 5 detection window unchanged. Warm starts (model cached on a named volume) flip to healthy on the first probe as before, so fast paths are unaffected.
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.
What
Raise
start_periodon theembeddingsextension healthcheck from120sto600s.Why
The Hugging Face TEI image downloads its model at first start. On slow connections a ~115 MB model (default
BAAI/bge-base-en-v1.5) can exceed the existing 120s + 5x30s = 270s total grace window, making the container flipunhealthywhile the download is still progressing, followed by restart-loop confusion on the dashboard.How
One-line edit to
dream-server/extensions/services/embeddings/compose.yaml:28.start_periodis a grace window — Docker ignores failed checks inside it and flips to healthy on the first successful probe — so raising it does not slow down warm starts and does not mask true crash-loops (restart: unless-stoppedstill triggers on non-zero exit).Testing
docker compose configparses the modified file cleanly.scripts/validate-compose-stack.shpasses (2 services, exit 0).python3 -c "import yaml; yaml.safe_load(...)"— YAML valid.pre-commit(gitleaks, private-key, large-file) passes..env.schema.jsonuntouched.Review
Critique Guardian APPROVED (no required changes).
Platform Impact