How can I fail the backend immediately, for existing and new connections, if the check fails?
With the following settings, if the client is still sending queries, it may take long time (10 mins, perhaps much more), before haproxy sends queries for existing connections to the healthy server: global daemon maxconn 512 defaults mode http timeout connect 5s timeout client 1m timeout server 1m frontend http-in bind 1.1.1.1:80 default_backend da backend da option httpchk GET /.testpage.php HTTP/1.1\r\nHost:\ www.example.com server node1 1.1.1.1:80 check inter 2000 on-error fastinter observe layer7 error-limit 1 server node2 2.2.2.2:80 check inter 2000 on-error fastinter observe layer7 error-limit 1 listen admin bind *:82 stats enable -- Tomasz Chmielewski http://wpkg.org