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
This commit is contained in:
Michele Baldessari 2021-06-08 20:52:41 +02:00
parent 7e1436b3f9
commit aaa981c9eb
1 changed files with 1 additions and 1 deletions

View File

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