[rabbitmq-discuss] Load balancing connections to a rabbitmq cluster

Srinath C srinath.c at gmail.com
Sun Feb 23 12:57:59 GMT 2014


Thanks MK for the prompt reply.

I understand that haproxy load balances the incoming connections. But what
about the case where all the connections are established on only one node
(due to failure of the other node). Can it redistribute the connections
when the failed rabbitmq node comes up?


On Sun, Feb 23, 2014 at 6:16 PM, Michael Klishin <
michael.s.klishin at gmail.com> wrote:

> 2014-02-23 16:18 GMT+04:00 Srinath C <srinath.c at gmail.com>:
>
> when the failed node recovers it will remain up and running with no
>> connections established to it since all the clients are having persistent
>> connections to the other node. The load is now skewed and all the load is
>> thrust on one server with the other server lying idle. Are there common
>> solutions to this kind of load sharing problems? Please advice.
>
>
> Stick HAproxy in front of the cluster and make clients connect to it. It
> can load balance incoming
> connections and keep track of the backend (node) states and won't send
> connections to the backends
> that are unavailable.
> --
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140223/b0d1c253/attachment.html>


More information about the rabbitmq-discuss mailing list