Hi Just an update. I added the option as suggested, and I still lost my stats again. I'm wondering if it has something to do with the browsers. I left the browser open for quite a while, but after I closed it, and came back later to check, I couldn't get back in. Like I said before, the disappearing stats are an annoyance, but I worry it's a symptom of a bigger problem.
Tom -----Original Message----- From: Willy Tarreau [mailto:[email protected]] Sent: Thursday, May 14, 2009 12:42 AM To: Tom Potwin Cc: 'Alex Forrow'; [email protected] Subject: Re: New HAProxy user keeps loosing connection On Wed, May 13, 2009 at 04:53:15PM -0400, Tom Potwin wrote: > Thanks Alex for the info. Unfortunately, I'm already using 'option > httpclose'. Here's my current cfg: > global > log 127.0.0.1 local0 > log 127.0.0.1 local1 notice > #log loghost local0 info > maxconn 4096 > #debug > #quiet > user haproxy > group haproxy > defaults > log global > mode http > option httplog > option dontlognull > retries 3 > redispatch > maxconn 2000 > contimeout 5000 > clitimeout 50000 > srvtimeout 50000 > > listen webfarm 192.168.31.100:80 > mode http > stats enable > stats auth netadmin:5bgr+bdd1WbA > stats refresh 5s > balance roundrobin > cookie JSESSIONID prefix > option httpclose > option forwardfor > option httpchk HEAD /check.txt HTTP/1.0 > server web1 192.168.31.202:80 cookie w01 check inter 2000 rise > 2 fall > 2 > server web2 192.168.31.212:80 cookie w02 check inter 2000 rise > 2 fall > 2 > option persist > redispatch > contimeout 5000 you can try to add "option forceclose". If this works with that option, it means that one of the sides (browser or server) is incorrectly ignoring "Connection: close" (already encountered a long time ago). Do you reach haproxy through a proxy or directly ? maybe this proxy would enforce keep-alive. Hoping this helps, Willy

