File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ the release.
1313 ([ #1707 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1707 ) )
1414* [ chore] Fix gen-proto for accountingservice
1515 ([ #1709 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1709 ) )
16+ * [ chore] Add depends on to otelcol to wait on healthy opensearch
17+ ([ #1724 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1724 ) )
1618* [ accountingservice] bump OpenTelemetry .NET Automatic Instrumentation
1719 to 1.8.0 together with other dependencies
1820 ([ #1727 ] ( https://github.com/open-telemetry/opentelemetry-demo/pull/1727 ) )
Original file line number Diff line number Diff line change @@ -593,7 +593,10 @@ services:
593593 - " ${OTEL_COLLECTOR_PORT_GRPC}"
594594 - " ${OTEL_COLLECTOR_PORT_HTTP}"
595595 depends_on :
596- - jaeger
596+ jaeger :
597+ condition : service_started
598+ opensearch :
599+ condition : service_healthy
597600 logging : *logging
598601 environment :
599602 - ENVOY_PORT
@@ -654,4 +657,10 @@ services:
654657 hard : 65536
655658 ports :
656659 - " 9200"
660+ healthcheck :
661+ test : curl -s http://localhost:9200/_cluster/health | grep status | grep -q '\\(green\\|yellow\\)'
662+ start_period : 10s
663+ interval : 5s
664+ timeout : 10s
665+ retries : 10
657666 logging : *logging
Original file line number Diff line number Diff line change @@ -704,7 +704,10 @@ services:
704704 - " ${OTEL_COLLECTOR_PORT_GRPC}"
705705 - " ${OTEL_COLLECTOR_PORT_HTTP}"
706706 depends_on :
707- - jaeger
707+ jaeger :
708+ condition : service_started
709+ opensearch :
710+ condition : service_healthy
708711 logging : *logging
709712 environment :
710713 - ENVOY_PORT
@@ -765,4 +768,10 @@ services:
765768 hard : 65536
766769 ports :
767770 - " 9200"
771+ healthcheck :
772+ test : curl -s http://localhost:9200/_cluster/health | grep -q '"status":"green"'
773+ start_period : 10s
774+ interval : 5s
775+ timeout : 10s
776+ retries : 10
768777 logging : *logging
You can’t perform that action at this time.
0 commit comments