]> git.ipfire.org Git - thirdparty/chrony.git/commit
sources: delay source replacement
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 15 Jun 2023 10:54:32 +0000 (12:54 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 15 Jun 2023 12:23:47 +0000 (14:23 +0200)
commit2aefadd129c57fa8169bace240accb511790aa86
tree6b41d905b039ce29e8f956d396be2fde3d70d59a
parent123cb497b9df0a06861c76c22258235d880644aa
sources: delay source replacement

Wait for four consecutive source selections giving a bad status
(falseticker, bad distance or jittery) before triggering the source
replacement. This should reduce the rate of unnecessary replacements
and shorten the time needed to find a solution when unreplaceable
falsetickers are preventing other sources from forming a majority due
to switching back and forth to unreachable servers.
sources.c
test/simulation/137-pool
test/simulation/148-replacement [new file with mode: 0755]