Switching backends based on a cookie

Laurence Rowe l at lrowe.co.uk
Sat Jan 30 21:46:50 MSK 2010


2010/1/29 Marcus Clyne <ngx.eugaia at gmail.com>:
> Laurence Rowe wrote:
>>
>> I would take a look at HAProxy which has better support for this use
>> case, allowing for requests to be retried against another server if
>> their associated backend is down.
>>
>
> I would agree that if you're just wanting to do proxying, then HAProxy is
> probably a better way to go, however the above is also possible in Nginx
> using upstreams.

The only option then for sticky sessions is ip_hash, not cookies.

Laurence



More information about the nginx mailing list