Thanks for the reply Mark,<br><br>In our case, we <br><br>1. Create two exchanges A and B<br>2. Create 8 queues a,b,c,d,e,f,g,h<br>3. Bind A,B to these queues.<br>4. Consumer is listening to a,b,c,d,e,f,g,h ......<br>5. For the above operations, we are using two Rabbit MQ nodes in clustered mode.<br>
<br>Please let us know the behaviour of clustered RabbitMQs ....<br><br>Also, I could not understand the statement <b>"all the traffic to a queue gets forwarded to one particular node."</b> (we send the messages to an exchange and not a queue, isn't it ?)<br>
<br>Regards,<br>Kshitiz Garg<br><br><div class="gmail_quote">On Fri, Nov 19, 2010 at 1:42 PM, Marek Majkowski <span dir="ltr"><<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<div><div></div><div class="h5"><br>
On Fri, Nov 19, 2010 at 06:19, Kshitiz Garg <<a href="mailto:stephanion2002@gmail.com">stephanion2002@gmail.com</a>> wrote:<br>
> We are getting into rabbit cluster configuration with Load balancer in<br>
> front. I had this doubt that if we get to connect to rab1 at the time of<br>
> creation of exchanges and queues and rab2 at the time of using these<br>
> exchanges and queues, how will the system behave? Basically we want to know<br>
> that do we have to create similar exchanges and queues on both RabbitMQs or<br>
> is there any automatic provision?<br>
<br>
</div></div>RabbitMQ clustering is a complex beast.<br>
<br>
Most of the resources are automatically shared in the cluster. So if you<br>
create an exchange on one server, it will automatically appear in the<br>
other one. Under the hood we're just using a replicated Erlang<br>
database (mnesia).<br>
<br>
On the other hand that is not true for queue data (messages). Queue<br>
gets assigned<br>
to a particular node in cluster, and all the traffic to a queue gets forwarded<br>
to one particular node.<br>
<br>
Cheers,<br>
<font color="#888888"> Marek<br>
</font></blockquote></div><br>