Hello:

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;
}
}


Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready