13
votes
Sticky sessions with Nginx proxy
My server was behind AWS load balancing, so I needed to pass the correct headers to upstream so it would always reflect the client IP. The following configuration fixed my issue (see the commented ...
11
votes
Sticky sessions with Nginx proxy
According to Nginx documentation Sticky session support is only available for their expensive Plus version.
I've been researching alternatives and the closer I've been is this old fork that is not ...
8
votes
Accepted
Nginx ip_hash does not load-balance connections to meteor backend
Yes, this happens because ip_hash uses only the first three octets of the IP address for selecting the backend node.
You can use hash $remote_addr; directive to make nginx use the complete remote IP ...
3
votes
Accepted
Achieving stickiness on kubernetes cluster with ingress-gce
Seems like the problem here is that the Client IP that the service sees is the Load Balancer IP (this assumes you are using an ingress with your Node Port service). This article discuses this issue a ...
3
votes
AWS ELB session stickiness issue when multiple AWSELB cookies exist in a single request
This is simple, by rule and standard practice you need to use an ELB for one application (but nothing stops you to use multiple applications from an ELB).
Solution You need to use 2 ELBs for 2 ...
2
votes
What is HAProxy appsession request-learn?
Usually when you are using a cookie it comes in a response from the back-end server with a "set-cookie" header. This is usually in response to a login. If this doesn't happen then HAProxy will not be ...
2
votes
Adding a server in another location
You have a few options.
You could set up CloudFront to serve all your content (including pages and uploads) and see if it makes things faster. All traffic, including dynamic, can go over CloudFront, ...
1
vote
Accepted
How does NGINX Plus handle server failure when doing session persistence for TCP/UDP communication?
It feels like the two might become mutually exclusive
Yes. That's not a problem specific to nginx. By far the best solution is to have your session data replicated / highly available - but that's not ...
1
vote
Frontend still keep connected when backends RDP session is disconnected
Strange, The client should get a popup asking to reconnect from the connection broker.
Your timeouts are very small, this blog recommends tcp keepalive aswell :
clitimeout 1h
srvtimeout 1h
option ...
1
vote
Accepted
How to use sticky sessions with TCP ports in AWS?
Turns out Amazon's Application Load Balancers (ALBs) send websockets through HTTP listeners, so my switching from ELB to ALB I was able to achieve this functionality I wanted without the need to ...
1
vote
How to config nginx as sticky loadbalancer for both http and https
Well, I guess, because you're using two upstream groups, the state isn't shared between the two groups. Right now I can't test this further, but here are some ideas of mine:
Use one upstream group, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sticky-sessions × 74load-balancing × 31
haproxy × 25
nginx × 15
amazon-web-services × 7
tomcat × 7
session × 7
apache-2.2 × 5
cluster × 4
failover × 4
mod-proxy × 4
cookies × 4
f5-big-ip × 4
ssl × 3
apache-2.4 × 3
azure × 3
tcp × 3
amazon-elb × 3
jboss × 3
networking × 2
amazon-ec2 × 2
proxy × 2
reverse-proxy × 2
https × 2
node.js × 2