nginx alone performs x2 than haproxy-nginx

2012-04-29 Thread Bar Ziony
Hi, I have 2 questions about a haproxy setup I configured. This is the setup: LB server (haproxy 1.4.20, debian squeeze 64-bit) in http mode, forwarding requests to a single nginx web server, that resides on a different machine. I'll paste the haproxy config at the end of this message. 1.

Re: nginx alone performs x2 than haproxy-nginx

2012-04-29 Thread Willy Tarreau
Hi Bar, On Sun, Apr 29, 2012 at 02:09:42PM +0300, Bar Ziony wrote: Hi, I have 2 questions about a haproxy setup I configured. This is the setup: LB server (haproxy 1.4.20, debian squeeze 64-bit) in http mode, forwarding requests to a single nginx web server, that resides on a different

Re: Force a particular client to another server

2012-04-29 Thread Willy Tarreau
Hi Les, On Thu, Apr 26, 2012 at 11:57:50AM -0400, Les Stroud wrote: I use the cookie method to assign clients to particular servers because a number of our applications have session affinity (and the sessions are not clusterable :(). Occasionally, I have a need to move a particular client

Re: nginx alone performs x2 than haproxy-nginx

2012-04-29 Thread Bar Ziony
Hi Willy, Thanks for your time. I really didn't know this are such low results. I ran 'ab' from a different machine than haproxy and nginx (which are different machines too). I also tried to run 'ab' from multiple machines (not haproxy or nginx) and the results are pretty much / 3 the single

Re: nginx alone performs x2 than haproxy-nginx

2012-04-29 Thread Willy Tarreau
On Sun, Apr 29, 2012 at 05:25:01PM +0300, Bar Ziony wrote: Hi Willy, Thanks for your time. I really didn't know this are such low results. I ran 'ab' from a different machine than haproxy and nginx (which are different machines too). I also tried to run 'ab' from multiple machines (not

Re: nginx alone performs x2 than haproxy-nginx

2012-04-29 Thread Bar Ziony
Willy, Thanks as always for the very detailed and helpful answer. I'll reply in-line, like you ;-) On Sun, Apr 29, 2012 at 7:18 PM, Willy Tarreau w...@1wt.eu wrote: On Sun, Apr 29, 2012 at 05:25:01PM +0300, Bar Ziony wrote: Hi Willy, Thanks for your time. I really didn't know this

Re: nginx alone performs x2 than haproxy-nginx

2012-04-29 Thread Willy Tarreau
On Sun, Apr 29, 2012 at 09:05:26PM +0300, Bar Ziony wrote: I'm using VPS machines from Linode.com, they are quite powerful. They're based on Xen. I don't see the network card saturated. OK I see now. There's no point searching anywhere else. Once again you're a victim of the high