From 023b761adc96f6d6eab4642c5989e7d482b79201 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Wed, 17 Jun 2020 18:37:18 +0200 Subject: [PATCH] Updating healthcheck for kafka and zookeeper Change-Id: Icb2e2930a3866cae9196c428e4de180088fdd749 Signed-off-by: Felipe Vicens (cherry picked from commit adf35b574270cb0c221d45fdc51d67b8fefb0d09) --- installers/docker/docker-compose.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.25.1