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
2
votes
2 answers

Sticky sessions in Lighttpd

I've read in http://redmine.lighttpd.net/projects/1/wiki/Docs:ModProxyCore that sticky sessions are not currently implemented in lighttpd. I'd like to know if it is possible to have sticky sessions using lighttpd as a loadbalancer. Perhaps…
Matias
  • 79
  • 7
2
votes
1 answer

Haproxy sticky session not redirecting to different server when backend fails

I have the following configuration for my haproxy LB: global daemon maxconn 2048 # SSL ca-base /etc/ssl/certs crt-base /etc/ssl/private ssl-default-bind-ciphers…
sa125
  • 325
  • 1
  • 7
  • 14
2
votes
1 answer

How to make Nginx fire 504 immediately if server is not available?

I have Nginx set up as a load balancer with cookie-based stickiness. The logic is: If the cookie is NOT there, use round-robbing to choose a server from cluster. If the cookie is there, go to the server that is associated with the cookie value.…
2
votes
2 answers

Haproxy: My sessions are "sort of" sticky

Pound is infront of HAProxy for SSL off-load so HAProxy receives plaint text HTTP requests. I have HAProxy (v1.4.8) infront of two web-app servers hosting the same application. Below is my HAProxy config. Currently, a client hits HAProxy, and can…
jwbensley
  • 4,202
  • 11
  • 58
  • 90
2
votes
1 answer

What is HAProxy appsession request-learn?

I'm reading the HAProxy manual and there is a part that I'm not understanding: request-learn If this option is specified, then haproxy will be able to learn the cookie found in the request in case the server does not …
Bijou Trouvaille
  • 283
  • 2
  • 10
2
votes
3 answers

does bigIP support sticky session

Does BIG IP support sticky sessions? I have 2 apache's behind a Big IP box at my partner end. Need to know whether Big IP supports sticky sessions. My apache has the sticky session enabled. All requests will hit the backend hosted in jboss.
Sekhar
  • 143
  • 1
  • 3
2
votes
2 answers

Load Balancing and Clustering using mod_proxy_ajp on Apache HTTP Server 2.2.21 and Tomcat 7.0.23

I've been struggling to make load balancing and clustering working using these combination: Apache HTTP Server 2.2.21 (httpd-2.2.21-win32-x86-openssl-0.9.8r) using mod_proxy_ajp with sticky session enabled. Apache Tomcat 7.0.23…
Yusuf S
  • 41
  • 1
  • 1
  • 7
2
votes
1 answer

Amazon EC2 ELB directing load to other instances and session stores

If we scale up (add an instance to ELB), could we redirect some existing requests to the new instance. So that, The users that we force to a new server will be asked to login again If we scale down (remove an instance from ELB), then all users from…
2
votes
2 answers

Tomcat clustering/loadbalancing performance in production environment

I have some doubts on the performance of clustering and session management in load balanced environment. Here are my questions: What are the drawbacks of sticky-sessions and session replication. The cluster will contain 4 nodes, but many concurrent…
1
vote
0 answers

Azure Application Gateway CookieBasedAffinity not sending sessions to same host

We have deployed 2 Linux VMs in a Backend Pool behind an Application Gateway. Our application on the 2 Linux VMs requires that the session remain on the same backend server, but we are seeing a session use both backend servers. We are not seeing any…
neildeadman
  • 684
  • 4
  • 20
  • 34
1
vote
1 answer

How to use sticky sessions with TCP ports in AWS?

I have an application that runs across multiple AWS instances, and I need to have them load balanced with sticky sessions. AWS load balancing works fine for HTTP, but AWS doesn't give you the option of doing it for TCP, which is a problem for me as…
1
vote
0 answers

AWS Load Balancer does not forward Cookies

I have an AWS "Classic Load Balancer" that relays the traffic and for 3 EC2 instances. On these EC2 instances (it's simple Linux machines) I have a GlassFish 4.1 running and listening to port 80. When calling the URL for a single server, everything…
1
vote
0 answers

haproxy sticky sessions with 1 backend but multiple ACLs

I have two subdomains "www.example.com" and "something.example.com" but in the haproxy config they use the same backend, which has the same cookie settings. if I stay on one I can verify by the cookie which server I'm on which remains "sticky" but…
1
vote
0 answers

nginx SSL termination with sticky load balancing

I want to use Nginx with a socket.io app with TLS/SSL termination at the load balancer. Is it possible to use the ip_hash directive to do sticky loadbalancing in combination with TLS/SSL termination? My application only uses HTTPS. I could not find…
Leo
  • 31
  • 1
  • 4
1
vote
1 answer

Haproxy 1.5x reload configuration without terminating layer 7 sessions?

Folks, I moved one of our SaaS applications off a coyote point hardware load balancer onto a vm running nginx + haproxy with haproxy handling hash persistence. The problem I'm running into is the app requires session stickiness to a single backend…
Jchieppa
  • 168
  • 4
  • 10