Policy that mirrors queues to 2 nodes #497
ralphotowo
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @ralphotowo, happy New Year! looks like this was a duplicated question from https://groups.google.com/g/rabbitmq-users/c/O-ckBWwsRcE/m/7B29hrDUBgAJ. Hope this is no longer an issue for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have an old installation of RabbitMQ using the now deprecated diy-kubernetes setup guide and are looking to migrate to the new and improved cluster operator. I'm currently stuck trying to replicate the policy below into a kubernetes policy manifest file.
This is the policy file we have that works:
The file above when applied results in the following policy:
I have tried changing the
ha-mode
to 'exactly' and uncommenting theha-params
line to get a policy that matches the one in the screenshot above but I've been unsuccessful with the following error from the messaging topology operator pod's logs:I want to mirror my queues across two nodes, not all. Can anyone share steps to accomplish this using the cluster operator?
I can login to one of the pods and manually execute the following, but I'm looking to define it declaratively.
rabbitmqctl set_policy --priority 1 --apply-to queues ha '^(?!amq\.).*' '{"ha-mode":"exactly","ha-params":2,"ha-sync-mode":"automatic"}'
Beta Was this translation helpful? Give feedback.
All reactions