I'm trying to setup HAProxy as a load balancer on a RabbitMQ cluster. I use a config like this one:
global
log /dev/log local0 debug
log /dev/log local1 debug
chroot /var/lib/haproxy
user haproxy
group haproxy
defaults
log global
retries 2
timeout connect 5000
timeout server 50000
timeout client 50000
listen rabbitmq-cluster
bind my.pu.blic.ip:5672
mode tcp
option tcpka
option redispatch
balance roundrobin
server rabbit1 rabbit1:5672 check inter 5000 downinter 500
server rabbit2 rabbit2:5672 check inter 5000 downinter 500
server rabbit3 rabbit3:5672 check inter 5000 downinter 500
My issue is that clients that are supposed to keep connections to a rabbitmq server open have their connection closed every 50 sec. Is there an option I forgot, or should I just increase the timeout to some higher value to mitigate that issue?
Thanks!