added healthcheck to druid router service and added it as dependency of query-service

This commit is contained in:
Ankit Anand 2021-06-02 00:43:30 +05:30
parent 47bf512a33
commit 15eb5364d5
2 changed files with 17 additions and 10 deletions

View File

@ -140,6 +140,11 @@ services:
env_file:
- environment_tiny/router
- environment_tiny/common
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://router:8888/druid/coordinator/v1/datasources/flattened_spans"]
interval: 30s
timeout: 5s
retries: 5
flatten-processor:
image: signoz/flattener-processor:0.2.0
@ -171,11 +176,10 @@ services:
- DruidDatasource=flattened_spans
- STORAGE=druid
- POSTHOG_API_KEY=H-htDCae7CR3RV57gUzmol6IAKtm5IMCvbcm_fwnL-w
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://router:8888/status/health"]
interval: 30s
timeout: 5s
retries: 5
depends_on:
router:
condition: service_healthy
frontend:
image: signoz/frontend:0.3.0

View File

@ -135,6 +135,11 @@ services:
- router
env_file:
- environment_small/router
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://router:8888/druid/coordinator/v1/datasources/flattened_spans"]
interval: 30s
timeout: 5s
retries: 5
flatten-processor:
image: signoz/flattener-processor:0.2.0
@ -167,11 +172,9 @@ services:
- STORAGE=druid
- POSTHOG_API_KEY=H-htDCae7CR3RV57gUzmol6IAKtm5IMCvbcm_fwnL-w
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://router:8888/status/health"]
interval: 30s
timeout: 5s
retries: 5
depends_on:
router:
condition: service_healthy
frontend:
image: signoz/frontend:0.3.0