Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Vivek Malik
I personally find it easier to use cookie instead of appsession. We use a similar pattern of adding a new server. Keeping a low maxidle (like 10 minutes) helps us send traffic to new servers. Keeping maxidle helps us maintain session affinity where required (like progress bars for uploads) Vivek

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
session through socket command? /E From: Vivek Malik [mailto:vivek.ma...@gmail.com] Sent: den 7 november 2011 11:05 To: Erik Torlen Cc: haproxy@formilux.org Subject: Re: Autoscaling in haproxy with persistence sessions I personally find it easier to use cookie instead of appsession. We use a similar

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
? /E From: Erik Torlen [mailto:erik.tor...@apicasystem.com] Sent: den 7 november 2011 11:16 To: Vivek Malik Cc: haproxy@formilux.org Subject: RE: Autoscaling in haproxy with persistence sessions Interesting. In this case we are expecting a lot of burst traffic during a very short period of time, 15

Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread David Birdsong
re appsession in > a stick-table and clear the session through socket command? > > > > /E > > > > From: Vivek Malik [mailto:vivek.ma...@gmail.com] > Sent: den 7 november 2011 11:05 > To: Erik Torlen > Cc: haproxy@formilux.org > Subject: Re: Autoscaling i

Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread vivek . malik
Malik; haproxy@formilux.org Subject: Re: Autoscaling in haproxy with persistence sessions This sounds like what balancing on a hashed value is intended for. 'hash-type consistent' will reduce the redistribution of keys when the pool is expanded, and when nodes are removed, only t

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
sage- From: David Birdsong [mailto:david.birds...@gmail.com] Sent: den 7 november 2011 12:18 To: Erik Torlen Cc: Vivek Malik; haproxy@formilux.org Subject: Re: Autoscaling in haproxy with persistence sessions This sounds like what balancing on a hashed value is intended for. 'hash-type consistent

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
...@gmail.com] Sent: den 7 november 2011 12:27 To: David Birdsong; Erik Torlen Cc: haproxy@formilux.org Subject: Re: Autoscaling in haproxy with persistence sessions If the solution is intended for traffic burst, Isn't it safe to assume that most clients will be new which appsession/cookie doesn&#

Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Baptiste
rs. > > /E > > > -Original Message- > From: vivek.ma...@gmail.com [mailto:vivek.ma...@gmail.com] > Sent: den 7 november 2011 12:27 > To: David Birdsong; Erik Torlen > Cc: haproxy@formilux.org > Subject: Re: Autoscaling in haproxy with persistence sessions > &g

Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Holger Just
On 2011-11-07 21:32, Erik Torlen wrote: > If you get a burst against 3 active backend servers they will take > care of all the request and connections. The clients that are active > will then get a persistence sessions against 1 of these 3 servers. It > will take ~5min to scale up a new server so

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
:43 To: Erik Torlen Cc: vivek.ma...@gmail.com; David Birdsong; haproxy@formilux.org Subject: Re: Autoscaling in haproxy with persistence sessions Hi Erik, Let me give you a few information, I don't know if it will help. Appsession is not resilient on HAProxy reload. Which means that since you r

Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Baptiste
On Mon, Nov 7, 2011 at 9:48 PM, Erik Torlen wrote: > Thank you Baptiste, seems like it should work then out-of-the-box when using > appsession. > > On Haproxy reload the sessions should be cleared and then clients would be > replicated to new servers. > Actually, the weakness of appsession seem

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
> plus new servers. > > /E > > > -Original Message- > From: vivek.ma...@gmail.com [mailto:vivek.ma...@gmail.com] > Sent: den 7 november 2011 12:27 > To: David Birdsong; Erik Torlen > Cc: haproxy@formilux.org > Subject: Re: Autoscaling in haproxy with persiste

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
ubject: Re: Autoscaling in haproxy with persistence sessions On Mon, Nov 7, 2011 at 9:48 PM, Erik Torlen wrote: > Thank you Baptiste, seems like it should work then out-of-the-box when using > appsession. > > On Haproxy reload the sessions should be cleared and then clients would be >

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
never know, big releases going mainstream tends to generate traffic so we need to make sure that scaling further up will work as expected. /E -Original Message- From: Holger Just [mailto:hapr...@meine-er.de] Sent: den 7 november 2011 12:45 To: haproxy@formilux.org Subject: Re: Autoscali

Re: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Baptiste
On Mon, Nov 7, 2011 at 10:05 PM, Erik Torlen wrote: > What would you recommend if we wanted to have all our three haproxy instances > loadbalance in the same way. > And still make use of persistence when the client is using one of the haproxy > instances? > > E.g Having the client come to the sa

RE: Autoscaling in haproxy with persistence sessions

2011-11-07 Thread Erik Torlen
h-type map-based /E -Original Message- From: Baptiste [mailto:bed...@gmail.com] Sent: den 7 november 2011 13:58 To: Erik Torlen Cc: vivek.ma...@gmail.com; David Birdsong; haproxy@formilux.org Subject: Re: Autoscaling in haproxy with persistence sessions On Mon, Nov 7, 2011 at 10:05 PM