Skip to content

Commit b3d5d92

Browse files
UbuntuCopilot
authored andcommitted
Address hosts refresh timer feedback
Use OnUnitInactiveSec so the hosts setup service waits 10 seconds after each run completes before scheduling the next run. Add RandomizedDelaySec to de-synchronize nodes and reduce fleet-wide DNS bursts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent baf6c08 commit b3d5d92

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

parts/linux/cloud-init/artifacts/aks-localdns-hosts-setup.timer

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ Description=Run AKS LocalDNS hosts setup periodically
44
[Timer]
55
# Run immediately on boot
66
OnBootSec=0
7-
# Refresh every 10 seconds. AKS critical FQDN IPs can change due to load balancer
8-
# rotation, Traffic Manager failover, or regional DNS updates. Frequent refreshes
9-
# keep stale IPs from causing the hosts plugin to serve unreachable addresses for long.
10-
OnUnitActiveSec=10s
7+
# Refresh 10 seconds after each run completes. AKS critical FQDN IPs can change
8+
# due to load balancer rotation, Traffic Manager failover, or regional DNS updates.
9+
# Frequent refreshes keep stale IPs from causing the hosts plugin to serve
10+
# unreachable addresses for long.
11+
OnUnitInactiveSec=10s
12+
# De-synchronize nodes so refreshes do not all hit DNS at the same time.
13+
RandomizedDelaySec=5s
1114
# Timer accuracy (how much systemd can delay)
1215
AccuracySec=1s
1316

0 commit comments

Comments
 (0)