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

Do HTTP reverse proxies typically enable HTTP Keep-Alive on the client side of the proxied connection and not on the server side?

HAProxy has the ability to enable HTTP keep-alive on the client side (client <-> HAProxy) but disable it on the server side (HAProxy <-> server). Some of our clients connect to our web service via satellite so the latency is ~600ms and I think that…
LostInComputer
  • 497
  • 1
  • 4
  • 8
14
votes
2 answers

Sticky sessions with Nginx proxy

I have an application that's running on two different AWS instances and I'd like to enable "sticky" or "persistent" sessions based on IP so that I can take advantage of web socket technologies in a particular way. I have two different setups that…
Himmel
  • 351
  • 1
  • 2
  • 9
14
votes
3 answers

What is the downside to sticky sessions with load balancers?

We have a web farm of IIS7 machines which work great. In front of them is an F5 Big-IP hardware load balancer, also working fine :) (source: www.f5.com) Currently we're using an ASP.NET State Service to handle our OutProc state. This is required…
Pure.Krome
  • 6,338
  • 17
  • 72
  • 86
9
votes
1 answer

Using URL parameters for load balancing with HAProxy

I have a system which is load balancing via a cookie, but I want to use a URL parameter as an alternative. (Specifically, I have a front end app which does not support cookies). My setup is a little complex - I have a multiplayer system and I use…
Will Glass
  • 907
  • 2
  • 12
  • 21
5
votes
2 answers

HAProxy with SSL and sticky sessions

We're trying to set up HAProxy (v1.5.1) to use SSL. While we managed to do that, we're having some issues with the round robin settings: We do want to have stick sessions, but haproxy seems to send all sessions (from different browsers) to the same…
Ayelet
  • 151
  • 1
  • 1
  • 2
5
votes
1 answer

HAProxy: session stickiness triggered by response header possible?

I'm investigating HAProxy as a possible replacement for F5. F5 is capable of persisting a session based on a response header value: when HTTP_RESPONSE { set session [HTTP::header X-Session] if {$session ne ""} { persist add uie $session …
zoli
  • 238
  • 3
  • 8
5
votes
0 answers

nginx sticky sessions / ip_hash with Socket.io

I am to be load balancing two node.js/Socket.io instances on different boxes with nginx running a simple notifications service with a retroactive event for new clients. I don't think there will be any issues with the websocket connection type (which…
bdls
  • 171
  • 5
4
votes
1 answer

Nginx ip_hash does not load-balance connections to meteor backend

I cannot get nginx to load balance internal connections with ip_hash enabled. I need sticky sessions as I use meteor in the backend with sockets but all requests always hit the same backend. The nginx access log file shows the following IP…
user263367
  • 78
  • 1
  • 5
3
votes
1 answer

Achieving stickiness on kubernetes cluster with ingress-gce

I'm trying to achieve stickiness on kubernetes cluster but I am redirected to a different pod every time I access the load balancer. I have session affinity set to 'ClientIP' and also tried with 'Generated Cookie'. I have the following backend…
3
votes
2 answers

Implementing TCP Sticky Sessions With HAProxy to Handle SSL Pass-through Traffic

How can we implement session stickiness in HAProxy when SSL must terminate on the backend servers? We need the stickiness because backends cannot share sessions. This is my original configuration: # SSL passthrough listen https_handler bind…
3
votes
1 answer

AWS ELB session stickiness issue when multiple AWSELB cookies exist in a single request

I have two web apps - App-A & App-B - running in 2 EC2 instances (both web apps are running in both instances) fronted with an AWS ELB. The session stickiness is enabled using 'Application Generated Cookie Stickiness' and the cookie is set as…
drox
  • 131
  • 1
  • 1
  • 4
3
votes
3 answers

JBoss7 load balancing with mod_proxy_balancer - session not working

I am trying to set up mod_proxy_balancer for routing requests to 2 jboss7-servers. For the time being I am testing this setup on my local machine, using following config in httpd.conf: ProxyRequests Off Order deny,allow Deny from…
Phil P.
  • 51
  • 1
  • 5
2
votes
0 answers

List current HAProxy appsession keys

Please consider this HAProxy configuration with sticky sessions using JSESSIONID defaults timeout server 5m frontend http-in bind *:80 default_backend servers backend servers option httpchk OPTIONS / option forwardfor …
2
votes
0 answers

Sticky sessions with Apache load balancer for Socket.io 1.0

I've been messing around with Apache as a load balancer for my Socket.io server. I went through the following topic and now everything seems to be fine. Configuring Apache 2.4 mod_proxy_wstunnel for Socket.IO 1.0 I configured Apache using the…
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
1
2 3 4 5