[squid-users] affinity session load balancing
patrick.chemla at performance-managers.com
Mon Nov 16 10:32:31 UTC 2015
Thanks for your answer.
Actually, I am doing load balancing as sourceash, so on IP source.
The problem is that about 80% of clients come from the same IP, so I
have a highly loaded backend, while other are sleeping.
So whatever you call it, on haproxy they call it session affinity LB,
my need is to use a round-robin load balancing, but, very important,
each user should always directed to the same backend.
Can we do that with squid? avoiding user login on squid (userhash is not
On 16/11/2015 11:41, Antony Stone wrote:
> On Monday 16 November 2015 at 10:35:39, Patrick Chemla wrote:
>> I am using squid for years, maybe with basic features, and I have a
>> problem today with an app where I need to manage multiple backends, be
>> sure that a user is always sent to the same one because the app writes
>> on local disk, and I have 80% users coming from same IP.
> Is this Squid operating in accelerator mode (in front of the server/s) or in
> proxying mode (being used by the clients)?
>> So I need to load balance, not on the soucre IP, and I can't have a
>> login on squid to identify each user, because it will create a double
>> connexion procedure with the application login.
> How does the app distinguish between different clients *without* Squid being
>> Is there a way that squid will recognize a new connexion, maybe same IP,
>> and load balnace it to any backend using round-robin? some affinity
>> session load balancing?
> The first thing needed to answer that is a definition of "session".
More information about the squid-users