Skip to content

Commit bbe23bd

Browse files
committed
rabbitmq: Improve healthcheck script output
We've seen multiple occassions of all these healthcheck commands not being able to be executed in 30s after the switch to RMQ 4.1. Let's put more information in the Docker/Podman healthcheck logs. Change-Id: I4b1b54983144f5514a6703c255d2cb4fa052a0fb
1 parent 2319d12 commit bbe23bd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docker/rabbitmq/healthcheck_rabbitmq

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
set -e
44

5-
rabbitmq-diagnostics -t 5 -q ping || exit 1
6-
rabbitmq-diagnostics -t 5 -q status || exit 1
7-
rabbitmq-diagnostics -t 5 -q check_running || exit 1
8-
rabbitmq-diagnostics -t 5 -q check_local_alarms || exit 1
9-
rabbitmq-diagnostics -t 5 -q check_port_connectivity || exit 1
10-
rabbitmq-diagnostics -t 5 -q check_virtual_hosts || exit 1
5+
for check in ping status check_running check_local_alarms check_port_connectivity check_virtual_hosts; do
6+
echo "Running rabbitmq-diagnostics $check"
7+
rabbitmq-diagnostics -t 5 -q $check || (echo "ERROR: $check failed" && exit 1)
8+
done

0 commit comments

Comments
 (0)