Welcome! Log In Create A New Profile

Advanced

Re: Conditional balancing

Maxim Dounin
August 04, 2013 05:48PM
Hello!

On Sun, Aug 04, 2013 at 03:43:16PM -0500, Nulik Nol wrote:

> I am developing a webmail service where the user's inbox and all
> related session variables will be loaded to one of many application
> servers which will be behind the balancer (running nginx). So, I need
> nginx to direct all requests of a particular user, to a particular
> application server. How 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 conditional
> balancing ?

Trivial solution would be to use a cookie to specify backend
needed, and set the cookie during login.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Conditional balancing

nuliknol August 04, 2013 04:44PM

Re: Conditional balancing

Maxim Dounin August 04, 2013 05:48PM

Re: Conditional balancing

unclepieman August 05, 2013 01:06AM

Re: Conditional balancing

mex August 06, 2013 03:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready