Skip to content

Commit

Permalink
tweak NTP parameters (#6017)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow authored Jul 22, 2024
1 parent 6f25cfe commit 28c9a8b
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions zone-setup/src/bin/zone-setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,16 +515,13 @@ logdir /var/log/chrony
log measurements statistics tracking
# makestep <threshold> <limit>
# We allow chrony to step the system clock if we are more than a day out,
# regardless of how many clock updates have occurred since boot.
# The boundary NTP servers are configured with local reference mode, which
# means that if they start up without external connectivity, they will appear
# as authoritative servers even if they are advertising January 1987
# (which is the default system clock on a gimlet after boot).
# This configuration allows a one-off adjustment once RSS begins and the
# boundary servers are synchronised, after which the clock will advance
# monotonically forwards.
makestep 86400 -1
# We allow chrony to step the system clock up to three times on startup if we
# are more than a second out. Even though boundary NTP servers are configured
# with local reference mode, they will not appear as authoritative servers
# until they synchronize upstream. This configuration allows us to converge
# quickly once the boundary servers converge. After this the clock will advance
# monotonically forward.
makestep 1.0 3
# When a leap second occurs we slew the clock over approximately 37 seconds.
leapsecmode slew
Expand Down Expand Up @@ -588,8 +585,10 @@ maxslewrate 2708.333

let new_config = if *is_boundary {
for s in servers {
let str_line =
format!("pool {} iburst maxdelay 0.1 maxsources 16\n", s);
let str_line = format!(
"pool {} iburst maxdelay 0.1 minpoll 0 maxpoll 3 maxsources 16\n",
s
);
contents.push_str(&str_line)
}
contents
Expand Down

0 comments on commit 28c9a8b

Please sign in to comment.