Nginx session-stickiness
Rob Mueller
robm at fastmail.fm
Sun Apr 6 06:41:36 MSD 2008
> Is there any way to achieve session stickiness via Nginx proxying?
>
> I`ve read about ip_hash but this is not going to work if one of the
> backend
> servers fails, right? Clients that should go to it wil lnot be served
> unless
> I mark the server as down. If this is what nginx does, then it is not much
> os
> a solution.
Have a look at proxy_next_upstream.
http://wiki.codemongers.com/NginxHttpProxyModule#proxy_next_upstream
You can turn it on for "error", and if nginx fails to connect to the hashed
backend, it'll try the next hashed server just as if you'd marked it as
down.
Rob
More information about the nginx
mailing list