nginx keepalive and dns resolver
问题 I have a nginx instance in AWS that has upstream Application layer. There are two requirements for nginx - keepalive - use resolver to dynamically resolve the upstream I am able to make either of them work. Here is the config for making keepalive work: upstream "backend" { server "appserver.example.com:443"; keepalive 250; } server { resolver 10.0.0.2 valid=60s; server_name _; location / { proxy_http_version 1.1; proxy_pass https://backend; } } Here is the config for DNS resolver to work: