Re: [chrony-users] Syncing time as with a single request |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Syncing time as with a single request
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Tue, 28 Jan 2020 09:35:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580200535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xksue/o6CR6EDT2UHWjwZQwoXNtre0r5ms1RQ0HqjqI=; b=F8WiH25L+w7Ylohu5j7Oa2Y6K6FNcxhPr3fno98D3zAp3R9Y/LWGf35r3XTxNld7q917Bb NfQNgWx9JA9b/Wg8ttypaZbcj1wuV5JfwN/hqPlxE3qAxNfNjWhg+2Zpu4AEZicUZSdZS8 0KZTxZTJRhRXTpdjnq1iyff8Gb/zhSo=
On Tue, Jan 28, 2020 at 04:11:49AM +0000, Gustav Krantz wrote:
> Hello all,
>
> I'm trying to sync system time as quickly as possible as I have a time requirement to meet. Currently I'm using the iburst option against several servers, along with "makestep 1.0 3", and a wait service that calls "/usr/bin/chronyc -h 127.0.0.1,::1 waitsync 600 0.1 0.0 1" to ensure that other services run only after the clock has been synced. This takes about 6 seconds.
>
> If I want to sacrifice some accuracy to reduce the sync time, what would be best practice?
There was a similar question recently:
https://listengine.tuxfamily.org/chrony.tuxfamily.org/chrony-users/2020/01/msg00004.html
> Would it be possible to do the initial sync with a single request per server? If so how would this be done and what would the drawback be?
The current development code in git supports a single-sample
selection/update mode, enabled by setting maxsample to 1, but it's
meant to be used only in the "ntpdate" mode (-q/-Q option) as it
doesn't adjust the frequency of the clock. You could use it for the
initial correction before normally starting chronyd.
# chronyd -q 'pool pool.example.com maxsamples 1 iburst'
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.