aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_proxy_module.c
diff options
context:
space:
mode:
authorMini Hawthorne <mini@f5.com>2023-07-12 12:20:45 -0700
committerAleksei Bavshin <a.bavshin@f5.com>2024-11-07 07:57:42 -0800
commit29aec5720fdfc74dca8d99d5cf6dc0fcb4e4ce2f (patch)
treea04b9975051ba44f5dc7b1532b4d66f97de900a5 /src/http/modules/ngx_http_proxy_module.c
parentea4654550ab021b5576c03b708079e3ce3e5d9ed (diff)
downloadnginx-29aec5720fdfc74dca8d99d5cf6dc0fcb4e4ce2f.tar.gz
nginx-29aec5720fdfc74dca8d99d5cf6dc0fcb4e4ce2f.zip
Upstream: copy upstream zone DNS valid time during config reload.
Previously, all upstream DNS entries would be immediately re-resolved on config reload. With a large number of upstreams, this creates a spike of DNS resolution requests. These spikes can overwhelm the DNS server or cause drops on the network. This patch retains the TTL of previous resolutions across reloads by copying each upstream's name's expiry time across configuration cycles. As a result, no additional resolutions are needed.
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.c')
0 files changed, 0 insertions, 0 deletions