Welcome! Log In Create A New Profile


How does Nginx resolve ELB ip change when proxying to ELB with keep-alive connection

Posted by jeffwang66 

I use Nginx to proxy requests to upstream server that has ELB setup in front. If ELB ip gets changed, Nginx will have some issue as it caches the existing connections. Because of performance impact, I setup keepalive for upstream. Is there a way to let Nginx re-lookup ELB dns while still having keepalive connections to upstream?

Looks like Nginx plus version (commercial version) introduces "resolver" for upstream. But is there a way for free version?

Here is my Nginx config:

upstream backend {
server test-elb.com
keepalive 32;

server {
location / {
proxy_pass http://backend;

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
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