global log 127.0.0.1 local0 #see /etc/rsyslog.d/haproxy.conf chroot /var/lib/haproxy pidfile /var/run/haproxy.pid uid 99 gid 99 daemon #run as service nbproc 1 #only one instance allowed maxconn 120000
defaults mode http log global option httplog #log http info option http-server-close #Don't keepalive between haproxy and server option redispatch #if health check failed, dispath new server option forwardfor #for server get Ip of client retries 3 #connect to server fail max times before redispatch timeout connect 10s #timeout tcp connection between haproxy and backend servers timeout client 50s #timeout client inactivity timeout server 50s #timeout for server to process the request timeout queue 30s #timeout for request in queue when server reach max connection timeout http-keep-alive 2s timeout http-request 15s default-server inter 5s rise 2 fall 3 stats uri /stats stats refresh 10s stats auth baina:P@55word