Almost 1/4 of all requests to a HAProxy instance fail with 503 errors, although the two backend servers are completely healthy and repeated checks on the individual servers return no errors at all.
PHP 5.3 FPM, Nginx, Ubuntu 10.10, HAProxy 1.4.8
Below is my haproxy.cfg:
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults http
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
errorfile 400 /etc/haproxy/errors/400.htm
errorfile 403 /etc/haproxy/errors/403.htm
errorfile 408 /etc/haproxy/errors/408.htm
errorfile 500 /etc/haproxy/errors/500.htm
errorfile 502 /etc/haproxy/errors/502.htm
errorfile 503 /etc/haproxy/errors/503.htm
errorfile 504 /etc/haproxy/errors/504.htm
listen www 0.0.0.0:80
mode http
balance roundrobin
option redispatch
cookie JSESSIONID prefix
stats enable
stats auth user:pass
option httpclose
option forwardfor
option httpchk HEAD /health HTTP/1.0
server web1 0.0.0.0:8080 weight 1 cookie web1 check inter 1000
server web2 0.0.0.0:8080 weight 2 cookie web2 check inter 1000