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

Matt matt+forums at ustyme.com
Thu Jun 18 17:13:18 UTC 2015

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150618/f0797e2b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elbnginxdrawingforsupportforums.png
Type: image/png
Size: 33399 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150618/f0797e2b/attachment-0001.png>

More information about the nginx mailing list