Welcome! Log In Create A New Profile


Upstream "Sticky Connections?"

July 18, 2012 09:51AM
Hello Everyone,

We are currently using Nginx 1.2.1 to terminate SSL and to load balance between two JBoss servers.

Here is my upstream block:

upstream jboss_servers {

The issue we're having is such -- When a user is connected to Nginx, Nginx will proxy the connection to one of the two backend servers, for example If we take that server offline (by stopping JBoss) the user is directed to the server and their session is broken, requiring them to login again. We understand and accept this.

However, when server is brought back online, Nginx is then redirecting their session back to that server, breaking their session and requiring them to login yet again.

Is there a directive I can use to prevent this behavior? I've seen this referred to in other places as sticky sessions, does Nginx support a similar method?
Subject Author Posted

Upstream "Sticky Connections?"

mevans336 July 18, 2012 09:51AM

Re: Upstream "Sticky Connections?"

Jérôme Loyet July 18, 2012 10:02AM

Re: Upstream "Sticky Connections?"

mevans336 July 18, 2012 10:14AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
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