[rabbitmq-discuss] Mirrored queues behind a load balancer

Matthias Radestock matthias at rabbitmq.com
Thu Jul 4 19:46:27 BST 2013


On 03/07/13 18:12, James Lewis wrote:
> Hi Girish, just a disclaimer: I'm no expert and I'm only just going
> through the motions of setting up a HA cluster myself.  However, I think
> I can answer a couple of your questions.
>
> 1.
>
>     Likewise, if I manually create a queue on one node, it immediately
>     shows up on the other node as well.
>
> Not unless you specifically set the queue to be mirrored.

As was pointed out in the previous response to this question at 
http://rabbitmq.1065348.n5.nabble.com/Mirrored-queues-behind-a-load-balancer-tp27386p27388.html, 
queues are visible/accessible across all nodes in a cluster regardless 
of whether they are mirrored.

> The clustering guide says yes that approach will work.  However the
> mirrored queue guide talks about master - slave replication which makes
> me think of setting the load balancer up to fail over to a slave in the
> case of a master failure rather than to round-robin the requests to all
> nodes in the cluster...  I'd appreciate it if someone could confirm this.

As per the above; queues are accessible from all nodes. So it doesn't 
matter which node a client connects to.

Matthias.


More information about the rabbitmq-discuss mailing list