Re: haproxy keeps sending traffic to an offine backend
thanks Willy, I'll test this changing this option. If it keep sending traffic to offline hosts, how can I work around/fix this? It will be some code to fix or something that I can't workaround? On Wed, Apr 11, 2012 at 3:42 AM, Willy Tarreau wrote: > On Wed, Apr 11, 2012 at 03:21:29AM -0300, Marcello Coutinho wrote: > > global > > maxconn 999 > > Why this insanely high value ? Your system will likely not support it > anyway. > > > log 192.168.1.100local0 > > uid 80 > > gid 80 > > nbproc 8 > > You're running on 8 processes, so it's very likely that what you're > observing > is that your processes don't all detect the server down at the same time, > and > that after a "server DOWN" log from one process, another process still > sends > traffic to it because it has not detected it as down yet. > > I'm seeing nothing particularly wrong below. You could improve your end > user experience by replacing "httpclose" with "http-server-close". > > Regards, > Willy > >
haproxy keeps sending traffic to an offine backend
Sorry for the missing info. I've attached my current config hiding some real info listen SRV_WEB bind192.168.52.14:81 modehttp log global option dontlognull option httpclose maxconn 40960 clitimeout 100 balance source contimeout 3 srvtimeout 6 retries 2 option httpchk HEAD /default.htm HTTP/1.0 server SRV_WEB1 192.168.3.107:80 check inter 1000 weight 30 server SRV_WEB2 192.168.3.106:80 check inter 1000 weight 30 global maxconn 999 log 192.168.1.100local0 uid 80 gid 80 nbproc 8 chroot /var/empty daemon listen HTTPS bind201.xx.yy.62:443 modetcp log global option dontlognull option httpclose option forwardfor maxconn 40960 clitimeout 100 balance source contimeout 3 srvtimeout 60 retries 2 option ssl-hello-chk HEAD / HTTP/1.0 server proxy-01 192.168.52.61:443 check inter 1000 weight 14 server proxy-02 192.168.52.62:443 check inter 1000 weight 14 listen SRV_WEB bind192.168.52.14:81 modehttp log global option dontlognull option httpclose maxconn 40960 clitimeout 100 balance source contimeout 3 srvtimeout 6 retries 2 option httpchk HEAD /default.htm HTTP/1.0 server SRV_WEB1 192.168.3.107:80 check inter 1000 weight 30 server SRV_WEB2 192.168.3.106:80 check inter 1000 weight 30 listen SISTEMAS_HTTPS bind192.168.1.14:443 modetcp log global option dontlognull option httpclose option forwardfor maxconn 40960 clitimeout 100 balance source contimeout 9 srvtimeout 60 option ssl-hello-chk HEAD /teste.htm HTTP/1.0 server proxy-01 192.168.52.61:443 check inter 1000 weight 14 server proxy-02 192.168.52.62:443 check inter 1000 weight 14 listen STATS bind192.168.1.14:81 modehttp log global option dontlognull maxconn 5000 clitimeout 3 balance source contimeout 3 srvtimeout 3 retries 2 option httpchk HEAD /teste.htm HTTP/1.0 stats enable stats uri /haproxy?stats stats realm stats.domain stats auth noc:XYXYXY
haproxy keeps sending traffic to an offine backend
Hi, I didn't found and answer for this so I'm trying this mailing list. I'm using haproxy on freebsd and I'm getting a very strange behavior when a backend is offline I can see it offline on haproxy stats but connections keep being forwarded to offline member and failing to the client(checked with tcpdump). When I remove the offline member, I get a normal status again. tested on many 1.4.x version, including latest 1.4.20 Thanks for any help att, Marcello Coutinho