How to enable mirrored queues in Red Hat Openstack Services on OpenShift
Environment
- Red Hat Openstack Services on OpenShift version 18.0.7 and earlier.
Issue
- Services are not configured to use mirrored queues.
Resolution
Repeat the following steps for each RabbitMQ cluster in your deployment, including the RabbitMQ clusters for each additional Compute cell you added to your environment:
- Open a remote shell on any of the three
rabbitmqcluster pods and run the following commands:
$ oc rsh rabbitmq-server-0
sh-5.1$ rabbitmqctl set_policy ha-all "" '{"ha-mode":"exactly","ha-params":2,"ha-promote-on-shutdown":"always"}'
- Verify that the policy has been applied:
sh-5.1$ rabbitmqctl list_policies
Listing policies for vhost "/" ...
vhost name pattern apply-to definition priority
/ ha-all all {"ha-mode":"exactly","ha-params":2,"ha-promote-on-shutdown":"always"} 0
If you need to rollback the policy update, run the following command:
sh-5.1$ rabbitmqctl clear_policy ha-all
SBR
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.