global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 40000 daemon pidfile /var/run/haproxy.pid user haproxy group haproxy defaults log global mode http option httplog option dontlognull retries 3 redispatch maxconn 40000 contimeout 5000 clitimeout 50000 srvtimeout 50000 listen your-cluster your-vip:80 mode http stats enable stats auth youruser:yourpass balance roundrobin option httpclose option forwardfor option httpchk HEAD / HTTP/1.0 server www-01 your.web1.com:80 check server www-02 your.web2.com:80 check