Closed matthew-d-jones closed 7 years ago
In docker-compose healthchecks can be added so that dependent services are not started up until the service is ready. This would be much better than the current method of waiting 15 seconds in boot.sh.
boot.sh
healthcheck: test: ["CMD", "curl", "-f", "http://localhost:15672"] interval: 30s timeout: 10s retries: 5
For Kafka a good healthcheck would be to query metadata with kafkacat -b mybroker -L. Can we add kafkacat to the kafka docker image?
kafkacat -b mybroker -L
kafkacat
A kafkacat docker-compose service config (in case it is useful):
kafkacat: image: ryane/kafkacat entrypoint: - kafkacat - -b kafka.local links: - kafka:kafka.local
In docker-compose healthchecks can be added so that dependent services are not started up until the service is ready. This would be much better than the current method of waiting 15 seconds in
boot.sh
.For Kafka a good healthcheck would be to query metadata with
kafkacat -b mybroker -L
. Can we addkafkacat
to the kafka docker image?A kafkacat docker-compose service config (in case it is useful):