Skip to content

Commit 28c9a8b

Browse files
authored
tweak NTP parameters (#6017)
1 parent 6f25cfe commit 28c9a8b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

zone-setup/src/bin/zone-setup.rs

+11-12
Original file line numberDiff line numberDiff line change
@@ -515,16 +515,13 @@ logdir /var/log/chrony
515515
log measurements statistics tracking
516516
517517
# makestep <threshold> <limit>
518-
# We allow chrony to step the system clock if we are more than a day out,
519-
# regardless of how many clock updates have occurred since boot.
520-
# The boundary NTP servers are configured with local reference mode, which
521-
# means that if they start up without external connectivity, they will appear
522-
# as authoritative servers even if they are advertising January 1987
523-
# (which is the default system clock on a gimlet after boot).
524-
# This configuration allows a one-off adjustment once RSS begins and the
525-
# boundary servers are synchronised, after which the clock will advance
526-
# monotonically forwards.
527-
makestep 86400 -1
518+
# We allow chrony to step the system clock up to three times on startup if we
519+
# are more than a second out. Even though boundary NTP servers are configured
520+
# with local reference mode, they will not appear as authoritative servers
521+
# until they synchronize upstream. This configuration allows us to converge
522+
# quickly once the boundary servers converge. After this the clock will advance
523+
# monotonically forward.
524+
makestep 1.0 3
528525
529526
# When a leap second occurs we slew the clock over approximately 37 seconds.
530527
leapsecmode slew
@@ -588,8 +585,10 @@ maxslewrate 2708.333
588585

589586
let new_config = if *is_boundary {
590587
for s in servers {
591-
let str_line =
592-
format!("pool {} iburst maxdelay 0.1 maxsources 16\n", s);
588+
let str_line = format!(
589+
"pool {} iburst maxdelay 0.1 minpoll 0 maxpoll 3 maxsources 16\n",
590+
s
591+
);
593592
contents.push_str(&str_line)
594593
}
595594
contents

0 commit comments

Comments
 (0)