essence of the other tow ansers:
http://dgtool.blogspot.de/2013/02/nginx-as-sticky-balancer-for-ha-using.html
you might want to google "nginx sticky sessions"
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,241556,241627#msg-241627
___
nginx
think, is to integrate zookeeper into nginx as module, this
> way nginx will communicate with the application daemon and always know
> which appserver is holding user's session and data. But this is a lot
> of work, is there any other solution to do this sort of conditional
> ba
's session and data. But this is a lot
> of work, is there any other solution to do this sort of conditional
> balancing ?
Trivial solution would be to use a cookie to specify backend
needed, and set the cookie during login.
--
Maxim
w can it be done?
One way, I think, is to integrate zookeeper into nginx as module, this
way nginx will communicate with the application daemon and always know
which appserver is holding user's session and data. But this is a lot
of work, is there any other solution to do this sort of c