Also to optimize for performance:
- Disables message rates in the management plugin.
- Raises the collect_statistics_interval from 5000ms to
30000ms.
NB: Cherry-pick was not clean so I tested this manually on queens
and got the expected result:
~]# pcs status |grep -e 'rabbitmq.*Started'
rabbitmq-bundle-0 (ocf::heartbeat:rabbitmq-cluster): Started controller-0
rabbitmq-bundle-1 (ocf::heartbeat:rabbitmq-cluster): Started controller-1
rabbitmq-bundle-2 (ocf::heartbeat:rabbitmq-cluster): Started controller-2
Reviewed: https:/ /review. opendev. org/675283 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=23ad857ae1d 1c6b8107b37fa22 5b7d51eb266659
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 23ad857ae1d1c6b 8107b37fa225b7d 51eb266659
Author: Michele Baldessari <email address hidden>
Date: Wed Aug 7 10:31:39 2019 +0200
Enable rabbitmq_management plugin
Enable the RabbitMQ managment plugin. RabbitMQ managment
will listen on localhost (127.0.0.1) only.
NOTE: This depend on this upstream change: /github. com/voxpupuli/ puppet- rabbitmq/ pull/777
https:/
Also to optimize for performance: statistics_ interval from 5000ms to
- Disables message rates in the management plugin.
- Raises the collect_
30000ms.
NB: Cherry-pick was not clean so I tested this manually on queens bundle- 0 (ocf::heartbeat :rabbitmq- cluster) : Started controller-0 bundle- 1 (ocf::heartbeat :rabbitmq- cluster) : Started controller-1 bundle- 2 (ocf::heartbeat :rabbitmq- cluster) : Started controller-2
and got the expected result:
~]# pcs status |grep -e 'rabbitmq.*Started'
rabbitmq-
rabbitmq-
rabbitmq-
~]# curl -sS -u guest:$(hiera -c /etc/puppet/ hiera.yaml rabbitmq: :default_ pass) http:// 127.0.0. 1:15672/ api/queues/ 2> /dev/null |jq . |head -n5
"idle_ since": "2019-08-08 8:49:23",
"consumer_ utilisation" : null,
[
{
"memory": 10936,
Related-Bug: #1815675 5d1cae4c89d8b45 b2456b0a110 6f34dde4de72498 4bc381fa3f
Change-Id: I5e73660e23fef1
(cherry-picked from commit d6727aff7327644