dns name for upstream

Frank Liu gfrankliu at gmail.com
Thu Mar 10 22:55:06 UTC 2016


I saw this example at serverfault.com:

server {
    set $backend "http://dynamic.example.com:80";
    proxy_pass $backend;

I have a few questions:
1) If the resolver DNS becomes unavailable (say connection timeout), what
will nginx do? Will it keep using the old IPs or will it flush the DNS
since TTL expires? If later, the proxy will stop working.
2) In the upstream block, I could define "keepalive #", but with this
example, how can I do that?
3) This page
http://nginx.org/en/docs/stream/ngx_stream_core_module.html#resolver says
"This directive is available as part of our commercial subscription.". Is
that still up to date? Can "resolver", "resolver_timeout" be used in free
edition now?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160310/379d980a/attachment.html>

More information about the nginx mailing list