[rabbitmq-discuss] create a policy for concrete nodes
Tim Watson
tim at rabbitmq.com
Wed May 22 10:30:59 BST 2013
Hi,
On 22 May 2013, at 10:21, Slyth wrote:
> Now I have 4 machines which are clustered one queue with a policy for
> mirroring all nodes and everything works fine.
> Now I have only one more little question because of the queue.
[snip]
> Is it important which I use and when the node with the queue goes down
> do I have to restart the queue?
The way mirroring works is that the queues is constantly replicated on all the nodes the policy dictates. So if you have a queue called 'foobarbaz' and the policy is set up to replicate that across all 4 nodes, then the queue will be running on all 4 nodes all the time. The HA system will decide that one of the nodes will host the 'master' version of the queue. The actual processing (i.e., enqueue and dequeue operations) will take place on the master - i.e., all messages will be routed to/from this node, regardless of which node(s) clients connect to - and the master will remain synchronised with the other (slave) nodes in real time. If the node where the master for that queue is running dies, one of the slaves will be promoted to become the new master and everything will continue running as normal.
Cheers,
Tim
More information about the rabbitmq-discuss
mailing list