Re: Establishing connection lasts long

2011-09-14 Thread Tim Korves
Hi there, Do some basic tests, like try the following from your haproxy vm to your server: ping -A -s 18000 -c 1000 -q 10.3.4.84 PING 10.3.4.84 (10.3.4.84) 18000(18028) bytes of data. --- 10.3.4.84 ping statistics --- 1000 packets transmitted, 1000 received, 0% packet loss, time 1303ms rtt min/

Re: Establishing connection lasts long

2011-09-14 Thread John Lauro
Reserving memory is critical especially if you over commit. Haproxy degrades extremely quickly when things swap. Don't allow swapping inside or outside of the vm. Reserving a small amount of CPU is good. That said I doubt if either of these is your problem. It's probably more related to the

Re: Establishing connection lasts long

2011-09-14 Thread Baptiste
first you should reserve resources on your ESX server for your HAProxy box, to ensure it will never wait for the hypervisor to find some resources for it. Then, in the VM, you should tune networking sysctl (tcp port range, tcp rmem, wmem, the syn backlog, etc...) you can also do CPU affinity per p

Re: Establishing connection lasts long

2011-09-14 Thread Christophe Rahier
Hi, In my case, I searched on my Debian server but I don't find nf_conntrack ... Concerning tuning my whole system, why not but in which direction? :-) Regards Christophe Le 14/09/11 00:34, « Willy Tarreau » a écrit : >On Tue, Sep 13, 2011 at 03:31:21PM +0200, Tim Korves wrote: >> Hi there

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