I use haproxy for HTTP(S) and SSH.
I am running version: haproxy-1.5-dev11
My pool of backend servers are different for each protocol.
I am having a problem with SSH, periodically (every day) haproxy stops
accepting connections. My Nagios check (tcp port 22) receives:
CRITICAL - Socket timeout after 10 seconds
This condition persists until I restart haproxy. At the same time, my
HTTP(S) virtual servers are unaffected. Also, the backends are just
fine, I can open a connection directly to them without issue. I don't
have access to the haproxy status page just now, but when I do, I can
provide information from it.
Here is my configuration for the SSH load balancer:
listen ssh-vip0
bind ??.??.??.??:22
mode tcp
option tcplog
balance leastconn
server ssh0 ssh0:22 minconn 10 maxconn 256 send-proxy
server ssh1 ssh1:22 minconn 10 maxconn 256 send-proxy
I don't see anything in the haproxy log about this virtual server,
just traffic from the other working ones.
Any ideas? What other information would be useful.