Welcome! Log In Create A New Profile

Advanced

Fwd: How can i have multiple nginx plus servers route to the same app servers with sticky sessions on?

All files from this thread

File Name File Size   Posted by Date  
elbnginxdrawingforsupportforums.png 32.6 KB open | download Matt 06/18/2015 Read message
Matt
June 18, 2015 01:14PM
I have multiple nginx instances behind an AWS elastic load balancer. In the
nginx config files, I am using ip_hash to force sticky sessions when
connecting upstream. Is there a way to sync the route tables between the
multiple nginx servers, so that no matter which nginx server handles the
request, the traffic is sent to the same backend application server.

When I first set this scenario up, I had no problems. But after heavy
testing with multiple clients from different parts of the world, I was able
to verify that the multiple nginx servers were not choosing the same
backend application servers to route to.

I attached a drawing that explains the architecture visually.

Matt
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - elbnginxdrawingforsupportforums.png (32.6 KB)
Subject Author Posted

Fwd: How can i have multiple nginx plus servers route to the same app servers with sticky sessions on? Attachments

Matt June 18, 2015 01:14PM

Re: Fwd: How can i have multiple nginx plus servers route to the same app servers with sticky sessions on?

Maxim Dounin June 18, 2015 02:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready