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

View File

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