Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-14 Thread Alex Davies
Sorry, I was being silly - you are right. Thank you for confirming! On Wed, Sep 14, 2011 at 8:14 AM, Willy Tarreau wrote: > On Wed, Sep 14, 2011 at 07:20:33AM +0100, Alex Davies wrote: > > Hi Willy, Cyril, > > > > Thank you for your detailed analysis. I still notice 504 errors almost > > immedia

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-14 Thread Willy Tarreau
On Wed, Sep 14, 2011 at 07:20:33AM +0100, Alex Davies wrote: > Hi Willy, Cyril, > > Thank you for your detailed analysis. I still notice 504 errors almost > immediately on a HAproxy start, and the PID matches the new process: Sorry, but this is not possible as it requires the timeout to be elapse

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-14 Thread Cyril Bonté
Hi Alex, Le Mercredi 14 Septembre 2011 07:20:33 Alex Davies a écrit : > Hi Willy, Cyril, > > Thank you for your detailed analysis. I still notice 504 errors almost > immediately on a HAproxy start, and the PID matches the new process: > > [root@frontend2 log]# ps aux | grep haproxy > haproxy 21

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Alex Davies
Hi Willy, Cyril, Thank you for your detailed analysis. I still notice 504 errors almost immediately on a HAproxy start, and the PID matches the new process: [root@frontend2 log]# ps aux | grep haproxy haproxy 21242 6.6 0.1 133176 47984 ?Rs 07:17 0:00 /usr/sbin/haproxy -D -f /etc/ha

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Willy Tarreau
Hi Alex, On Tue, Sep 13, 2011 at 03:18:54PM +0100, Alex Davies wrote: > Hi, > > Thank you for your observation - indeed I did notice some of those as I was > writing my email - I have updated my globals to increase the server timeout > (as we are doing long polling) and reduce the others, and rem

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Cyril Bonté
Hi again Alex, Le Mardi 13 Septembre 2011 13:26:04 Alex Davies a écrit : > Hi, > > I am not a haproxy expert, but have been using it in production for some > time with excellent results and I wonder if I can seek some expert advice on > running the fairly fast application server http://www.tornad

haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Alex Davies
Hi, Thank you for your observation - indeed I did notice some of those as I was writing my email - I have updated my globals to increase the server timeout (as we are doing long polling) and reduce the others, and remove the duplicates: defaults mode http optionht

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Alex Davies
Hi, Thank you for your observation - indeed I did notice some of those as I was writing my email - I have updated my globals to increase the server timeout (as we are doing long polling) and reduce the others, and remove the duplicates: defaults mode http optionht

Re: haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Cyril Bonté
Hi Alex, Sorry I won't have time to help you now, but... Le mardi 13 septembre 2011 14:26:04, Alex Davies a écrit : > The total time in milliseconds between accept and last close seems to be > ~300 seconds for most of the requests (although far from all of them, as the > first entry shows). If I

haproxy / Python 'tornado' framework - digging into 502/504 errors

2011-09-13 Thread Alex Davies
Hi, I am not a haproxy expert, but have been using it in production for some time with excellent results and I wonder if I can seek some expert advice on running the fairly fast application server http://www.tornadoweb.org/ behind HAproxy (haproxy-1.3.23 using the EPEL RPM (-1) on RHEL6 x86_64). H