From: Felipe Vicens Date: Wed, 17 Jun 2020 16:37:18 +0000 (+0200) Subject: Updating healthcheck for kafka and zookeeper X-Git-Tag: v7.1.2~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=023b761adc96f6d6eab4642c5989e7d482b79201;p=osm%2Fdevops.git Updating healthcheck for kafka and zookeeper Change-Id: Icb2e2930a3866cae9196c428e4de180088fdd749 Signed-off-by: Felipe Vicens (cherry picked from commit adf35b574270cb0c221d45fdc51d67b8fefb0d09) --- diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml index 25ed061e..fe15b8a4 100644 --- a/installers/docker/docker-compose.yaml +++ b/installers/docker/docker-compose.yaml @@ -40,10 +40,10 @@ services: networks: - netOSM healthcheck: - test: echo stat | nc localhost 2181 - interval: 10s + test: echo ruok | nc -w 2 localhost 2181 + interval: 20s timeout: 10s - retries: 3 + retries: 5 logging: driver: "json-file" options: @@ -70,7 +70,7 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock healthcheck: - test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0 + test: echo ruok | nc -w 2 zookeeper 2181 interval: 20s timeout: 10s retries: 5