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
(cherry picked from commit aaa981c9eb
)
This commit is contained in:
parent
d39a3282bd
commit
62344e944e
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
rabbitmqctl node_health_check || exit 1
|
||||
rabbitmq-diagnostics check_running || exit 1
|
||||
|
|
Loading…
Reference in New Issue