[rabbitmq-discuss] create a policy for concrete nodes

Slyth sabrina.kuehn90 at web.de
Mon May 13 11:06:39 BST 2013

I work now since 3 weeks with rabbitmq und I have my problems. Actualy I
want to mirror 3 vm's on 3 other vm's on one server. I'm not realy sure how
to do that but I try it.^^

I call my six clustered vm's rab1 - rab6

rab1 has a test-mirror-queue


rab2 abd rab3 are the consumer/receiver


the massage is sending and receiving

now to my problem:
I want that rab1-rab3 are mirrored from rab4-rab6 I don't now if my queue is
the right chose for that and if it is how I have to configure the policy.
The web UI is not able to create policies for ha-mode nodes so I tried to
write a command:

rabbitmqctl set_policy ha-mirror "^mirror\." \
> '{"ha-mode":"nodes","ha-params":"rabbit at rab5,rabbit at rab6","ha-sync-mode":"automatic"}'

But I've get an error msg:

Setting policy "ha-mirror" for pattern "^mirror\\." to
"{\"ha-mode\":\"nodes\",\"ha-params\":\"rabbit at rab5,rabbit at rab6\",\"ha-sync-mode\":\"automatic\"}"
Error: Validation failed

ha-mode="nodes" takes a list, <<"rabbit at rab5,rabbit at rab6">> given
Perhaps someone can help me by the command and I hope that someone can tell
if way to mirror my vm's is the right way.


View this message in context: http://rabbitmq.1065348.n5.nabble.com/create-a-policy-for-concrete-nodes-tp26611.html
Sent from the RabbitMQ mailing list archive at Nabble.com.

More information about the rabbitmq-discuss mailing list