Skip to content
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

chronyd: add prefer and maxsources options #25855

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Quba1
Copy link
Contributor

@Quba1 Quba1 commented Jan 29, 2025

Maintainer: Miroslav Lichvar [email protected] (find it by checking history of the package Makefile)
Compile tested: n/a
Run tested: (arch, model, OpenWrt version) Intel(R) Core(TM) i3-4150T CPU @ 3.00GHz, LENOVO INVALID, OpenWrt 23.05.2 r23630-842932a63d; I have implemented the changes on my machine and tested if chrony config file is generated correctly,

Description:

Added support for specifying two options in sources definitions - prefer (applicable for server, pool and peer) and maxsources (applicable only for pool).

Per chrony docs, prefer makes chrony prefer given source over other selectable sources without the prefer option.
I find it useful to not use pool.ntp.org if possible (as their website suggests) and to use servers with better stratum when possible.

Per chrony docs, maxsources sets the desired number of sources to be used from the pool. chronyd will repeatedly try to resolve the name until it gets this number of sources responding to requests. The default value is 4 and the maximum value is 16.
This can be specified to not overuse (or overuse) pools as needed.0

* Added support for specifiying prefer option in server/pool/peer
* Added support for specifying maxsources option for pool

Maintainer: Miroslav Lichvar <[email protected]>
Signed-off-by: Jakub Lewandowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant