Skip to content

Commit a90c978

Browse files
committed
fix: Zookeeper healthcheck 수정 (srvr 4LW 명령어 사용)
ruok 명령어가 기본 비활성화된 Confluent cp-zookeeper 7.6.0에서 srvr 명령어 기반 healthcheck로 변경합니다.
1 parent 1b063d3 commit a90c978

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ services:
5858
environment:
5959
ZOOKEEPER_CLIENT_PORT: 2181
6060
ZOOKEEPER_TICK_TIME: 2000
61+
KAFKA_OPTS: "-Dzookeeper.4lw.commands.whitelist=ruok,srvr,stat"
6162
volumes:
6263
- zookeeper-data:/var/lib/zookeeper/data
6364
- zookeeper-logs:/var/lib/zookeeper/log
6465
healthcheck:
65-
test: ["CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok"]
66+
test: ["CMD-SHELL", "echo srvr | nc localhost 2181 | grep Mode"]
6667
interval: 10s
6768
timeout: 5s
6869
retries: 5

0 commit comments

Comments
 (0)