I am running an active-active RabbitMQ cluster, and as recommended by &quot;High Availability in RabbitMQ: solving part of the puzzle&quot; (<a href="http://www.rabbitmq.com/blog/2011/10/25/high-availability-in-rabbitmq-solving-part-of-the-puzzle/">http://www.rabbitmq.com/blog/2011/10/25/high-availability-in-rabbitmq-solving-part-of-the-puzzle/</a>), I&#39;m connecting to the cluster of message brokers via an haproxy load balancer. �Everything was working fine until one of the nodes failed, after which it seemed that the haproxy load balancer did not appear to detect the failed node. �Clients would initiate connections and often just hang, I assume because the load balancer is forwarding them on to the failed node. �As a workaround, I&#39;ve reconfigured clients to connect directly to a working node, and everything returned to normal, so I am suspecting my haproxy configuration is not correct.<div>

<br></div><div>Does anyone have experience using haproxy as a load balancer for RabbitMQ, and if so, can you share your config or take a look at my configuration and let me know if you have any recommendations?</div><div>

<br></div><div>haproxy.cfg:</div><div><div>global</div><div>� � � � log 127.0.0.1 � local0</div><div>� � � � log 127.0.0.1 � local1 notice</div><div>� � � � maxconn 4096</div><div>� � � � user haproxy</div><div>� � � � group haproxy</div>

<div>� � � � daemon</div><div><br></div><div>defaults</div><div>� � � � log � � global</div><div>� � � � mode � �http</div><div>� � � � option �dontlognull</div><div>� � � � retries 3</div><div>� � � � option redispatch</div>

<div>� � � � maxconn 2000</div><div>� � � � contimeout � � �5000</div><div>� � � � clitimeout � � �50000</div><div>� � � � srvtimeout � � �50000</div><div><br></div><div>listen rabbitmq <a href="http://0.0.0.0:5672">0.0.0.0:5672</a></div>

<div>� � � � mode tcp</div><div>� � � � stats enable</div><div>� � � � balance roundrobin</div><div>� � � � option forwardfor</div><div>� � � � option tcpka</div><div>� � � � server rabbit01 <a href="http://1.2.3.4:5672">1.2.3.4:5672</a> check inter 5000</div>

<div>� � � � server rabbit02 <a href="http://1.2.3.5:5672">1.2.3.5:5672</a> check inter 5000</div><div>� � � � server rabbit03 <a href="http://1.2.3.6:5672">1.2.3.6:5672</a> check inter 5000</div></div>