mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 15:15:06 -05:00
sources: add option to limit selection of unreachable sources
Add maxunreach option to NTP sources and refclocks to specify the maximum number of polls that the source can stay selected for synchronization when it is unreachable (i.e. no valid sample was received in the last 8 polls). It is an additional requirement to having at least one sample more recent than the oldest sample of reachable sources. The default value is 100000. Setting the option to 0 disables selection of unreachable sources, which matches RFC 5905.
This commit is contained in:
@@ -218,6 +218,12 @@ Set the minimum number of samples kept for this source. This overrides the
|
||||
*maxsamples* _samples_:::
|
||||
Set the maximum number of samples kept for this source. This overrides the
|
||||
<<maxsamples,*maxsamples*>> directive.
|
||||
*maxunreach* _polls_:::
|
||||
This option specifies the maximum number of polls that this source can stay
|
||||
selected for synchronisation when it is unreachable (i.e. no valid response was
|
||||
received to the last 8 requests). Only sources with at least one sample more
|
||||
recent than the oldest sample of all reachable sources can be selected. The
|
||||
default is 100000.
|
||||
*filter* _polls_:::
|
||||
This option enables a median filter to reduce noise in NTP measurements. The
|
||||
filter will process samples collected in the specified number of polls
|
||||
@@ -731,6 +737,12 @@ Set the minimum number of samples kept for this source. This overrides the
|
||||
*maxsamples* _samples_:::
|
||||
Set the maximum number of samples kept for this source. This overrides the
|
||||
<<maxsamples,*maxsamples*>> directive.
|
||||
*maxunreach* _polls_:::
|
||||
This option specifies the maximum number of polls that this source can stay
|
||||
selected for synchronisation when it is unreachable (i.e. no valid sample was
|
||||
received in the last 8 polls). Only sources with at least one sample more
|
||||
recent than the oldest sample of all reachable sources can be selected.
|
||||
The default is 100000.
|
||||
|
||||
[[manual]]*manual*::
|
||||
The *manual* directive enables support at run-time for the
|
||||
|
||||
Reference in New Issue
Block a user