Welcome! Log In Create A New Profile

Advanced

Failover issues with sticky

July 21, 2011 05:14AM
Hello,

I'm using nginx solely as a load balancer, with nginx-sticky (
https://code.google.com/p/nginx-sticky-module/) as a way to maintain sticky
sessions.

There are 2 upstream servers configured - and I have to occasionally mark
one of them as down. When I do this, failover from clients that have a
sticky session cookie does not seem to happen to the other upstream server
(which is up).

Here are the steps in detail -
1. nginx with 2 upstream servers in the backend s1, s2
2. Client connects, nginx routes to s1
3. s1 marked as down in config, nginx config is reloaded
4. Requests from the same client continue going to s1, instead of s2

My understanding is that nginx should automatically route traffic to the
second server. Anything I am missing here?

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

Failover issues with sticky

talonx July 21, 2011 05:14AM

Re: Failover issues with sticky

Jérôme Loyet July 21, 2011 05:24AM

Re: Failover issues with sticky

talonx July 21, 2011 05:44AM

Re: Failover issues with sticky

Jérôme Loyet July 21, 2011 08:22AM

Re: Failover issues with sticky

talonx July 21, 2011 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready