Adjust rabbitmq probes to better reflect its actual state

This PS looks to make a few small tweaks to the rabbitmq probes so
that its health and readiness is more reflective of what is actually
happening inside the container. We were previously seeing instances
of the pod marked as ready before it actually was.

Change-Id: If48ec02d4050f7385e71c2e6fe0fff8f59667af4
This commit is contained in:
DeJaeger, Darren (dd118r) 2020-06-18 11:32:35 -04:00 committed by Chris Wedgwood
parent 5e316a9ba0
commit 64cd0faf6a
3 changed files with 3 additions and 3 deletions

View File

@ -20,5 +20,5 @@ if [ -f /tmp/rabbit-disable-liveness-probe ]; then
exit 0
else
timeout 5 bash -c "true &>/dev/null </dev/tcp/${MY_POD_IP}/${PORT_AMPQ}"
exec rabbitmqctl status
exec rabbitmqctl node_health_check
fi

View File

@ -19,5 +19,5 @@ set -e
if [ -f /tmp/rabbit-disable-readiness ]; then
exit 1
else
exec rabbitmqctl status
exec rabbitmqctl node_health_check
fi

View File

@ -217,7 +217,7 @@ spec:
command:
- /tmp/rabbitmq-readiness.sh
livenessProbe:
initialDelaySeconds: 30
initialDelaySeconds: 60
timeoutSeconds: 10
exec:
command: