Skip to content

Commit baf6c08

Browse files
UbuntuCopilot
authored andcommitted
Reduce hosts plugin refresh interval
Update the AKS LocalDNS hosts setup systemd timer to refresh every 10 seconds instead of every 15 minutes. Tighten timer accuracy to 1 second so the shorter cadence is honored. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e485686 commit baf6c08

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ Description=Run AKS LocalDNS hosts setup periodically
44
[Timer]
55
# Run immediately on boot
66
OnBootSec=0
7-
# Refresh every 15 minutes. AKS critical FQDN IPs can change due to load balancer
8-
# rotation, Traffic Manager failover, or regional DNS updates. 15 minutes balances
9-
# freshness against unnecessary DNS traffic — stale IPs would cause the hosts plugin
10-
# to serve unreachable addresses until the next refresh.
11-
OnUnitActiveSec=15min
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
1211
# Timer accuracy (how much systemd can delay)
13-
AccuracySec=1min
12+
AccuracySec=1s
1413

1514
[Install]
1615
WantedBy=timers.target

0 commit comments

Comments
 (0)