Hi, On Tue, Oct 21, gogo wrote: > Hello to everybody, > I have 2 haproxyes and 10 web servers at back. > On 2 hapoxyes I use with keepalived for some balancing and availabilities > which is OK... > Regarding web servers - I have 12 backends in haproxy configurations ( to > set some limits per site for apache or nginx max connections ) and it works > fine... > > But for every backend ( all 12 and on all of them I have same 10 real > servers ) I make check if backend servers are alive : > option httpchk HEAD /check.txt HTTP/1.0 > > So 2 haproxyes and 12 backends in configurations makes more than 20 open / > concurrent session per web server per second !!! > > Is there a better way to do that ( more than 200 sessions on servers are > doing only haproxy check at the moment ) ?
Have you tried using "track": http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.2-track so something like: backend BE_abc option httpchk HEAD /check.txt HTTP/1.0 ... server s1 ip:port ... check ... server s2 ip:port ... check ... backend BE_xyz ... server s1 ip:port ... track BE_abc/s1 server s2 ip:port ... track BE_abc/s2 ... -Jarno -- Jarno Huuskonen

