Browse Source

Move rabbitmq healthcheck to something more modern

Rabbitmq healthcheck when used against newer rabbitmq versions (seen at
least with 3.8.16) is using old interface "rabbitmqctl
node_health_check" which is deprecated and logs the following:

  2021-06-08 18:25:55.014 [warning] <0.5504.0> rabbitmqctl node_health_check and its HTTP API counterpart are
  DEPRECATED. See https://www.rabbitmq.com/monitoring.html#health-checks for replacement options.

Let's switch to "rabbitmq-diagnostics check_running" which should be a
sufficiently solid check without being too complex/heavy on rabbit
itself.

Change-Id: Ibaad817f52930380e659180fd8c52dca131cd4f8
Closes-Bug: #1931298
changes/99/795399/1
Michele Baldessari 2 months ago
parent
commit
aaa981c9eb
  1. 2
      healthcheck/rabbitmq

2
healthcheck/rabbitmq

@ -1,3 +1,3 @@
#!/bin/bash
rabbitmqctl node_health_check || exit 1
rabbitmq-diagnostics check_running || exit 1
Loading…
Cancel
Save