[rabbitmq-discuss] using load balancer with consumers to support automatic reconnection for node failure

Steve Hurdsfield Steve.Hurdsfield at TraderMedia.co.uk
Fri Mar 16 13:44:43 GMT 2012

Were trying to use a load balanced address for the rabbit mq nodes with no luck in our Consumer code. The idea being that if we get an error due to the node going down we reconnect on the Load Balanced addres and get the other node that is running.

We are not having much luck. It works for a while but then we get "Connection Reset" errors every few minutes. Taking the 2nd node out of the pool makes it work but obviously that's not what we want. Using the "real" node address also works. I know we can do this through code using the conenctionFactory.newConnention(...Address[] addresses) method but would have preferred to do this using hardware load balancer.


This e-mail is sent on behalf of Trader Media Group Limited, Registered Office: Auto Trader House, Cutbush Park Industrial Estate, Danehill, Lower Earley, Reading, Berkshire, RG6 4UT(Registered in England No. 4768833). This email and any files transmitted with it are confidential and may be legally privileged, and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This email message has been swept for the presence of computer viruses. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120316/45efdb69/attachment.htm>

More information about the rabbitmq-discuss mailing list