Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update HowTo on using the pool #218
base: main
Are you sure you want to change the base?
Update HowTo on using the pool #218
Changes from 2 commits
6f8398c
03859ca
ef6d93f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There needs to be only one pool directive. With
chronyd
4 specified pools would result in 16 used servers. Withntpd
, at least with some versions, I think it would decrease the number of servers as there is a dummy source added for each pool and I suspect it would increase the DNS traffic unnecessarily.For
ntpd
, there should betos maxclock 5
setting to limit the number of used servers to 4.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. And
pool pool.ntp.org iburst
would be a great choice, if it weren't for the fact that it has no AAAA-record. Hence, I proposepool 2.pool.ntp.org iburst
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Unless
maxsources
is used,chronyd
will use 4 servers per pool. Smart. 🕶️Setting
tos maxclock 5
is correct if declaring a single pool. According to the documentation ofntpsec
(a fork ofntpd
) using only a singlepool
declaration has some limitations. That limitation being that associations are slower to be established, I infer from the comments in the sample configuration.I haven't used
ntpd
recently, but inchronyd
having a single pool declared, gets you in sync within a minute.I'm fine with changing the configuration snippet for
ntpd
to:I left out the
driftfile
directive. It's distribution specific and I believe taken care of by most distribution's default configuration.For
chronyd
we need a remark then, thattos maxclock
is not needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mlichvar is the number 4 determined by chrony or is it based on the number of addresses returned from a single DNS query of pool.ntp.org? If it's chrony, is that hardcoded or a configurable default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's configurable using
maxsources
in connection withpool
. Default value is 4 and max value is 16.