[rabbitmq-discuss] loadbalancing & failover

Alvaro Videla videlalvaro at gmail.com
Tue Dec 7 10:39:37 GMT 2010


We run a similar setup. 

Regarding the question about all the clients connected to one broker: the problem here is that the queues on the other RabbitMQ won't be drained. 

We have our publishers connecting via the LVS but the consumers are told to specifically connect to one RabbbitMQ or the other to avoid such problem.



On Dec 7, 2010, at 6:29 PM, Bruno Thomas wrote:

> Hello all,
> We have a plateform that uses 2 rabbitmq nodes loadbalanced by a linux
> LVS (ipvsadm) in front. We have ipvsadm configured with persistent
> connections and clients with heartbeat. So far so good.
> After deployment, we generally have half of the clients connected to
> the first node and the other half connected to the second node.
> We tried to stop one node (rabbitmqctl stop_app and start_app). The
> clients are reconnecting rabbitmq cluster, and the LVS sends the
> connections to the node up. So all the clients are connected to the
> second node.
> We have 2 questions :
> 1) when the first node is up, how do you manage to reconnect the
> clients on the two nodes (loadbalancing) ?
> 2) is it a problem if all the clients are connected to one node ?
> Thank you for your anwsers.
> Bruno Thomas
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list