[rabbitmq-discuss] Doubt regarding rabbit servers in clustered environment

Marek Majkowski majek04 at gmail.com
Fri Nov 19 08:12:13 GMT 2010


Hi,

On Fri, Nov 19, 2010 at 06:19, Kshitiz Garg <stephanion2002 at gmail.com> wrote:
> We are getting into rabbit cluster configuration with Load balancer in
> front. I had this doubt that if we get to connect to rab1 at the time of
> creation of exchanges and queues and rab2 at the time of using these
> exchanges and queues, how will the system behave? Basically we want to know
> that do we have to create similar exchanges and queues on both RabbitMQs or
> is there any automatic provision?

RabbitMQ clustering is a complex beast.

Most of the resources are automatically shared in the cluster. So if you
create an exchange on one server, it will automatically appear in the
other one. Under the hood we're just using a replicated Erlang
database (mnesia).

On the other hand that is not true for queue data (messages). Queue
gets assigned
to a particular node in cluster, and all the traffic to a queue gets forwarded
to one particular node.

Cheers,
  Marek


More information about the rabbitmq-discuss mailing list