[rabbitmq-discuss] RabbitMQ cluster and connection management

Michael Klishin mklishin at gopivotal.com
Wed Mar 12 06:28:45 GMT 2014


On 12 Mar 2014, at 08:41, lcassa8 at gmail.com wrote:

> I created 3 server cluster of RabbitMQ. As per documentation, RabbitMQ client code does not support connection management to the cluster. It only connects to one broker at a time. I wanted to find out that in order to distribute load what usualy people do for RabbitMQ.

Any strategy that achieves a reasonably even distribution. Picking a random node will
likely be good enough for many environments.

> Do you use simple Load Balacer or write your own code to manage connections, connection pooling etc?

It’s a common strategy to use a load balancer in front of a cluster and make clients connect to it. Note that
you may need more than one load balancer and clients need to be able to connect to the first reachable one.

If you use RabbitMQ Java client, it can connect to the first reachable node from a list.

MK

Software Engineer, Pivotal/RabbitMQ




More information about the rabbitmq-discuss mailing list