Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(snuba-api): wait for clickhouse to be healthy #1053

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ x-sentry-defaults: &sentry_defaults
x-snuba-defaults: &snuba_defaults
<<: *restart_policy
depends_on:
- redis
- clickhouse
- kafka
clickhouse:
condition: service_healthy
kafka:
condition: service_healthy
redis:
condition: service_healthy
image: "$SNUBA_IMAGE"
environment:
SNUBA_SETTINGS: docker
Expand Down Expand Up @@ -180,6 +183,11 @@ services:
# If you have high volume and your search return incomplete results
# You might want to change this to a higher value (and ensure your host has enough memory)
MAX_MEMORY_USAGE_RATIO: 0.3
healthcheck:
test: ["CMD-SHELL", "wget -nv -t1 --spider 'http://localhost:9000/' || exit 1"]
interval: 3s
timeout: 600s
retries: 200
geoipupdate:
image: "maxmindinc/geoipupdate:v4.7.1"
# Override the entrypoint in order to avoid using envvars for config.
Expand Down