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