My understanding was that with two server backends load-balanced by HAProxy , if one goes down, HAProxy should be able to direct all traffic to the other.
I have two loadbalaced webservers, with roundrobin and httpchk, but when one goes down I get
503 - Service unavailable messages from HAProxy. Perhaps there is something wrong with my config?
backend app timeout server 50000ms mode http balance roundrobin option httpchk server ap1 ap1:8000 maxconn 4000 #ap1 is hostname server ap2 ap2:8000 maxconn 4000 #ap2 is hostname