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 ...
Himmel's user avatar
  • 411
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 ...
Mr. bug's user avatar
  • 219
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 ...
Tero Kilkanen's user avatar
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 ...
Patrick W's user avatar
  • 582
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 ...
Ameen Ibrahim Raffic - 'AIR''s user avatar
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 ...
Justin Dennahower's user avatar
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, ...
Tim's user avatar
  • 32.7k
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 ...
symcbean's user avatar
  • 22.4k
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 ...
Malcolm turnbull's user avatar
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 ...
user1072692's user avatar
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, ...
gxx's user avatar
  • 5,651

Only top scored, non community-wiki answers of a minimum length are eligible