Skip to content

Commit

Permalink
feat(fvt): use kafka-configs as healthcheck
Browse files Browse the repository at this point in the history
kafka-api-versions talks to every broker, but we want each healthcheck
to only talk to its own broker

Signed-off-by: Dominic Evans <[email protected]>
  • Loading branch information
dnwe committed Aug 17, 2023
1 parent 00d99c9 commit a86a950
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1}
SCALA_VERSION: ${SCALA_VERSION:-2.13}
healthcheck:
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-1:9091"]
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-1:9091", "--broker", "1", "--describe"]
interval: 10s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -78,7 +78,7 @@ services:
KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1}
SCALA_VERSION: ${SCALA_VERSION:-2.13}
healthcheck:
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-2:9091"]
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-2:9091", "--broker", "2", "--describe"]
interval: 10s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -114,7 +114,7 @@ services:
KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1}
SCALA_VERSION: ${SCALA_VERSION:-2.13}
healthcheck:
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-3:9091"]
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-3:9091", "--broker", "3", "--describe"]
interval: 10s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -150,7 +150,7 @@ services:
KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1}
SCALA_VERSION: ${SCALA_VERSION:-2.13}
healthcheck:
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-4:9091"]
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-4:9091", "--broker", "4", "--describe"]
interval: 10s
timeout: 5s
retries: 10
Expand Down Expand Up @@ -186,7 +186,7 @@ services:
KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1}
SCALA_VERSION: ${SCALA_VERSION:-2.13}
healthcheck:
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-5:9091"]
test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-5:9091", "--broker", "5", "--describe"]
interval: 10s
timeout: 5s
retries: 10
Expand Down

0 comments on commit a86a950

Please sign in to comment.