Re: HAProxy returning bad gateway for certain requests with termination flags SH or TH

2012-04-19 Thread Willy Tarreau
On Fri, Apr 20, 2012 at 12:16:48PM +0530, varoun p wrote: > For HAProxy - > GET /user/signin > host: felb-use1d-xx.us-east-1.elb.amazonaws.com > Accept: */* > User-Agent: curl/7.22.0 (x86_64-apple-darwin11.0.0) libcurl/7.22.0 > OpenSSL/1.0.1 zlib/1.2.6 libidn/1.22 > X-Forwarded-For: xx.xx.x

Re: Layer4 session concurrency

2012-04-19 Thread Willy Tarreau
On Fri, Apr 20, 2012 at 08:37:38AM +0200, Joel Svensson wrote: > I think we will setup both a HAProxy and LVS and run some tests. > We want to handle at least 100 000 connections without using a lot of RAM > on VMware ESX. There will be a very low connection rate/second and very > long-lived conn

Re: HAProxy returning bad gateway for certain requests with termination flags SH or TH

2012-04-19 Thread varoun p
On Fri, Apr 20, 2012 at 10:59 AM, Willy Tarreau wrote: > Hi, > > On Thu, Apr 19, 2012 at 08:34:21PM +0530, varoun p wrote: >> On Thu, Apr 19, 2012 at 4:53 PM, varoun p wrote: >> > Hello, >> > >> > I have HAProxy fronting a few backend servers. For one backend in >> > particular, HAproxy returns a

Re: Layer4 session concurrency

2012-04-19 Thread Joel Svensson
-Original Message- From: Willy Tarreau Sent: Friday, April 20, 2012 7:37 AM To: Baptiste Cc: Joel Svensson ; haproxy@formilux.org Subject: Re: Layer4 session concurrency On Fri, Apr 20, 2012 at 06:38:41AM +0200, Baptiste wrote: On Thu, Apr 19, 2012 at 3:48 PM, Joel Svensson wrote: >

[no subject]

2012-04-19 Thread zhangbeibei
2012-04-20 zhangbeibei hello! I have a question about haproxy.I want to know if the haproxy has the function of cookies protection.If it does,how to write the configure.cfg. can you give me a help ? I wish i can hear from you.

Re: Layer4 session concurrency

2012-04-19 Thread Willy Tarreau
On Fri, Apr 20, 2012 at 06:38:41AM +0200, Baptiste wrote: > On Thu, Apr 19, 2012 at 3:48 PM, Joel Svensson > wrote: > > Hi! > > > > From the text below I can't figure out if HAProxy will handle more sessions > > (than ~2/GB ram) in Layer4 mode? > > > > The session concurrency > > This factor i

Re: HAProxy returning bad gateway for certain requests with termination flags SH or TH

2012-04-19 Thread Willy Tarreau
Hi, On Thu, Apr 19, 2012 at 08:34:21PM +0530, varoun p wrote: > On Thu, Apr 19, 2012 at 4:53 PM, varoun p wrote: > > Hello, > > > > I have HAProxy fronting a few backend servers. For one backend in > > particular, HAproxy returns a HTTP 502 - bad gateway. > > > > As an example - > > > > $ curl -v

Re: Layer4 session concurrency

2012-04-19 Thread Baptiste
On Thu, Apr 19, 2012 at 3:48 PM, Joel Svensson wrote: > Hi! > > From the text below I can't figure out if HAProxy will handle more sessions > (than ~2/GB ram) in Layer4 mode? > > The session concurrency > This factor is tied to the previous one. Generally, the session rate will > drop when the

Layer4 session concurrency

2012-04-19 Thread Joel Svensson
Hi! From the text below I can't figure out if HAProxy will handle more sessions (than ~2/GB ram) in Layer4 mode? The session concurrency This factor is tied to the previous one. Generally, the session rate will drop when the number of concurrent sessions increases (except the epoll polli

Re: HAProxy Performance test

2012-04-19 Thread Baptiste
By the way, you could try to bind inject to a single CPU core. I got better performance when I run it bound to a core (but it's true my laptop was client and server in the mean time). cheers

Re: HAProxy Performance test

2012-04-19 Thread Baptiste
Brilliant email, thanks :) I have some tests to run today and tomorrow and some of these tips are very interesting (mainly on inject) ttyl

Re: Stopping new sessions from going to backend server

2012-04-19 Thread Tom Farrar
Thanks everyone for the feedback - I like the idea of the 404, but I also like the idea of using the CLI, so I think we might implement both! We are mainly going to use this for small fixes where we don't want to down the entire platform for the deploy, so being able to slowly decrease the number

Re: Stopping new sessions from going to backend server

2012-04-19 Thread Willy Tarreau
On Thu, Apr 19, 2012 at 10:41:22AM +0200, Baptiste wrote: > > BTW to respond to the weight method, it will do what you expect (and you > > have to re-enable it using "weight 100%"). The 404 that Baptiste describes > > above does exactly that : switch the weight to zero. The difference is that > > t

Re: Stopping new sessions from going to backend server

2012-04-19 Thread Baptiste
> BTW to respond to the weight method, it will do what you expect (and you > have to re-enable it using "weight 100%"). The 404 that Baptiste describes > above does exactly that : switch the weight to zero. The difference is that > the 404 is controlled from the server while the "set weight" is con

Re: Stopping new sessions from going to backend server

2012-04-19 Thread Willy Tarreau
On Wed, Apr 18, 2012 at 04:50:04PM +0200, Baptiste wrote: > On Wed, Apr 18, 2012 at 3:14 PM, Tom Farrar wrote: > > Hi list, > > > > We are looking at ways of stopping new sessions from going to a backend > > server in a controlled manner, where we can stop new sessions and let > > current sessions