Session stickyness?

Hi,

Is there any way to achieve session stickyness via Nginx proxying?

Using Apache ProxyPass directive one can write :
ProxyPass / balancer://mycluster/ lbmethod=byrequests
stickysession=BALANCEID

and use a BALANCEID cookie from the backends to direct users to the
right servers.

Does Nginx (0.5x) have a similar mechanism?

Regards

Hello,

On Nov 9, 2007 4:14 AM, Denis Brækhus [email protected] wrote:

Is there any way to achieve session stickyness via Nginx proxying?

Using Apache ProxyPass directive one can write :
ProxyPass / balancer://mycluster/ lbmethod=byrequests stickysession=BALANCEID

and use a BALANCEID cookie from the backends to direct users to the right servers.

Does Nginx (0.5x) have a similar mechanism?

The nginx mechanism I have seen is based on client IP address:
http://wiki.codemongers.com/NginxHttpUpstreamModule#ip_hash

HTH.