Quantcast
Channel: Serverphorums.com - HAProxy
Viewing all articles
Browse latest Browse all 11674

Re: Asking for help: how to expire haproxy's stick table entry only after the closing of all sessions which used it

$
0
0
On 16/03/2016 12:27 AM, "Hugo Maia" <hugofemaia@gmail.com> wrote:
>
> Hi, my name is Hugo.
>
> I'm currently using Haproxy 1.5, I have a backend with 2 servers. My app
servers receive connection from two clients and I want both of them to be
attributed to the same server. All connections have a url parameter X and
sessions that should be attributed to the same server have the same url
parameter X value. I use a stick table to save the server that a particular
url parameter value uses so that future connections can be attributed to
the same server.
>
> I want to be able to add app servers as load increases. In order to
instruct haproxy to move previous connections to the new app server I need
to expire stick table entries when no session (of either client) is active
in the server.
>
Isn't what a least connection balancer is for? I use that mode so when
adding new backend server all new sessions will go to that one, including
existing ones when they expire.

> Can you help me with this?
>
> Thanks in advance for any kind of help.
>
> Best Regards,
>
> Hugo Maia

Viewing all articles
Browse latest Browse all 11674

Trending Articles