[rabbitmq-discuss] RabbitMQ cluster - why policy is appearing in all the nodes?

Rajasekhar P sekhar434145 at gmail.com
Thu Oct 10 09:52:34 BST 2013


Hi Team,

I have created clustered environment with two rabbitmq nodes and I have
created below policy on one the node called rabbit1,
=> rabbitmqctl set_policy ha-one "^cust1\."
"{""ha-mode"":""exactly"",""ha-params"":1}"

When I execute the command "rabbitmqctl list_policies" on rabbit1 and
rabbit2 nodes, both the nodes are displaying polices.  Is that the right
behaviour?

And if it is the right behaviour, then how to run different policies in
different nodes like below.
If there are 4 nodes in the cluster,
a> rabbit1&rabbit2 should have one pattern, say "customer" => rabbitmqctl
set_policy ha-one "^customer\." "{""ha-mode"":""exactly"",""ha-params"":2}"
b> rabbit3&rabbit4 should have one pattern, say "merchant" => rabbitmqctl
set_policy ha-one "^merchant\." "{""ha-mode"":""exactly"",""ha-params"":2}"

Please any one could explain this behavior and how to achieve? Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131010/f4432cd3/attachment.htm>


More information about the rabbitmq-discuss mailing list