Questions tagged [sticky-sessions]

Sticky Sessions are a load-balancing method where individual user-sessions are kept to a single back-end server for the life of the session, and sessions are load-balanced across the whole pool. When one back-end server dies, only those user-sessions are interrupted.

Sticky Sessions are a load-balancing method where individual user-sessions are kept to a single back-end server for the life of the session, and sessions are load-balanced across the whole pool. When one back-end server dies, only those user-sessions are interrupted.

This method of load-balancing is best for web-applications where multiple servers can't safely serve the same user-session.

72 questions
1
vote
1 answer

PHP sessions without an expiration period. What happens to the sticky session on the load balancer?

I'm using PHP sessions without an expiration period, using Amazon EC2 Elastic Load Balancing with Sticky Sessions.. What happens to the generated application sticky session on the load balancer? When will the stickiness expire?
1
vote
0 answers

NginX hits only one backend with ip_hash enabled...?

Setup that we're trying to evaluate is pretty straightforward - NginX on one machine (currently 1vCPU, 2GB RAM), two back-end Tomcats on two separate machines. Core configuration as follows: worker_processes 1; events { worker_connections …
Less
  • 121
  • 1
  • 5
1
vote
1 answer

org.apache.catalina.session.ManagerBase- Start expire sessions StandardManager and End expire sessions StandardManager

I am just a beginner with tomcat and got stuck with following error while deploying a third party application. I have certainly start getting in tomcat (tomcat version is 7 on windows 2008 r2) logs lot following error and these are happening…
PTMS
  • 21
  • 1
  • 2
1
vote
2 answers

Apache httpd creates new sessions every time (2.2.16 and 2.4.6)

I have a server running Apahce httpd 2.2.16 on Debian 6.0.7 I use the proxy balancer directive to reverse proxy traffic using ajp protocol to tomcat backends BalancerMember ajp://server-01.siminn.is:8000…
davideagle
  • 33
  • 1
  • 6
1
vote
1 answer

Loadbalance UDP traffic with session affinity and way to take servers in & out of rotation

What is the best way to go about load balancing UDP traffic among a whole bunch of servers, while keeping session affinity based on the users' IP? I need to also be able to take servers in and out of rotation for new clients, so when they join for…
William
  • 85
  • 8
1
vote
0 answers

Any way to route MSMQ messages based on label?

I have a system with one MSMQ sender (generates about 10k messages/sec) and one MSMQ receiver (2k messages/sec). Generating and sending messages is fast, reading and processing is slow. Hence I want to put a load balancer and use a few receivers. At…
oleksii
  • 266
  • 1
  • 3
  • 11
1
vote
1 answer

WARNING: Context manager doesn't exist

I have cluster setup with session replication. I have one load balancer with 2 tomcat instances as the worker nodes. In one of the node I am getting the WARNING. NOt sure what it really means. Session replication seems to be working fine just…
nth
  • 89
  • 2
  • 3
  • 9
1
vote
1 answer

Memcached session manager in Azure: Connection gets forcibly closed

I am using Memcached Session Manager to handle Tomcat sessions in non-sticky mode. My deployment in Azure consists of a Worker Role with two instances which connect to an Azure VM running my Memcached server. Everything works pretty well, my…
1
vote
2 answers

Pfsense: Inbound Load Balancing https with sticky connection

first of all I'm very sorry for my English... This is my scenario: Internet Firewall+LB: pfsense_1(Active) + pfsense_2(Passive) in CARP Pool servers: 3 x nginx(PHP5+HTTP+HTTPS) Pfsense 1 and 2 CARP configured with Virtual IP (pubblic). Nginx…
Zeux
  • 11
  • 1
  • 2
1
vote
1 answer

mod_ajp_proxy configurations and session stickiness

I have a jboss and apache setup hosting my .war file. I have enabled session stickiness to forward requests from apache to jboss . Assume I have 2 apache and 2 jboss instances. Is the below setting correct? Currently session stickyness is not…
Sekhar
  • 143
  • 1
  • 3
1
vote
3 answers

PHP Sessions on Auto-Scaling Servers

(Apologies for cross-posting with SO. I wasn't sure where it was more appropriate.) I'm working on a PHP web app deployed to Amazon Web Services. We have load balancers in front of auto-scaled application servers. The problem we're facing at the…
1
vote
2 answers

Tomcat-workers: Session management without stickiness

I am learning Tomcat session control and I have 2 workers with sticky_session=1. But I want to remove stickiness to a particular worker yet maintain the session for users. I found the following statement in Tomcat doc and it says sticky_session can…
c4il
  • 111
  • 5
1
vote
0 answers

Nginx - Session persistency over two chained Nginx Instances

I have a very special use case - and I'm wondering if there isn't a better solution. Use case: Several users should be able to reach one of about 1000 target instances (C1 to C1000) coming from an Nginx instance (A) at the same time. Unfortunately,…
Dennis471
  • 11
  • 2
1
vote
0 answers

HAProxy 2.0 - retrying some of the requests based on URL

I have HAProxy version 2.0.14 installed, and I'm looking for a peculiar use-case which I haven't yet managed to configure correctly. Basically I have a frontend which listens on a port, and two backend servers. Once a session is started, cookies are…
Gábor Major
  • 113
  • 4
0
votes
0 answers

HAProxy using URL parameters for selecting a server

We have a mobile game client running on websocket connections and we want to use HAProxy as a load balancer. There are two main conditions: Set sticky session based on url parameter ID (varying string between 32 to 64 chars) and then select server…