| [chrony-users] Chrony behaviour on local reference mode | 
[ Thread Index | 
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
] 
- To: "chrony-users@xxxxxxxxxxxxxxxxxxxx" <chrony-users@xxxxxxxxxxxxxxxxxxxx>
 
- Subject: [chrony-users] Chrony behaviour on local reference mode
 
- From: Antoine Sgambato <asgambato@xxxxxxxxxxxxx>
 
- Date: Mon, 12 Oct 2020 17:03:53 +0000
 
- Accept-language: fr-FR, en-US
 
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=infovista.com; dmarc=pass action=none header.from=infovista.com; dkim=pass header.d=infovista.com; arc=none
 
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XdfuRZeNBszWEHgCymCW4EGvGBgYwFczhss99RjT+60=; b=DloIo8LX0TTP8Qx1HEKbmQ+O2jDqC8IgYepKMJYUTq/PEP4bUZMzRTbCCPc6Tq9BbWOOlUAwPj+C2z4eTopZNi0yuG0gNrdasZz2YUClYsCwTQ3q+YBZ8V3X7kSxr5Dc5RpS5G3A1Zf0EuG9a5o5Xs66KUwhJB4YcP756dIKWXPzTYhijwgvWlWPlIY5mfLUDNCBanZJBXXWM4IAVvoJNf2FuCIraFwruZJQ9gkDyBBp66muiR9bY3i5JNZ1lmo8fVmjM4gOQJZuOj5uxvxJMRddlMuWJuI2ZKFim7LOByLeDihqOEmcgDk4Pfk7P5wPbXsYoQrMbzQ10yGrpBapLg==
 
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DemelgUqkCwDbZ7EOlSoa4MdBe1u8DFVDYwLoPkSVrEShIxyTeoxsDsPFUkcNS5aHJxC6uA38u8NrnfeEbq20kyU3zvqp6X/fzO6CtfM5xSayp5dpVZ4ffd/SkFIrlrHpCf4i/b3ClSdXGXcT3sexfcQO91WlwU9zHr+yQiF06dM8DeNCfACdkF99ZLwREi97E7khs5sGycqSsAZVNUVX97NURKTlLHThlbRw1mD1zH5Tl32xZulmwLF9a87RKkNA1zpGx8EKxkYKQxQeZVuYquarA1xsRdrWOjuOOzfT1+Wm6g+O7XwGuU9DsvYEjy0xvOUcCyjyAcIktkehoq2Hg==
 
- Authentication-results: chrony.tuxfamily.org; dkim=none (message not signed) header.d=none;chrony.tuxfamily.org; dmarc=none action=none header.from=infovista.com;
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=IVTA.onmicrosoft.com; s=selector2-IVTA-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XdfuRZeNBszWEHgCymCW4EGvGBgYwFczhss99RjT+60=; b=bdGzxCrhrn19CujDNQtpbjgGGPyrmkm+Y3lbEHIrHmtyj0N0LChtVczGTZIcWMHlsGJbzppBZlLqXsOp2ECinJiav/UBxT638R6qMeU1/UwpqBGDTHDuT4Hj+iOuG3rUpU6pGT7TQtrst5AJPIc/Dptbh1Z+ebEpiA75AuRvzPI=
 
- Thread-index: AQHWoLkV7IaIPKkak0Cx/Kxa9CTZUg==
 
- Thread-topic: Chrony behaviour on local reference mode
 
Dear all,
I have set up a chrony server with a local reference as the sole available source.
The server is correctly synchronized with the local clock:
Reference ID    : 7F7F0101 ()
Stratum         : 12
Ref time (UTC)  : Mon Oct 12 16:06:27 2020
System time     : 0.000000009 seconds slow of NTP time
Last offset     : -0.000005781 seconds
RMS offset      : 0.008687890 seconds
Frequency       : 63.148 ppm fast
Residual freq   : +0.000 ppm
Skew            : 0.000 ppm
Root delay      : 0.000000000 seconds
Root dispersion : 0.000000000 seconds
Update interval : 64.0 seconds
Leap status     : Normal
In particular the reference ID 7F7F0101 tells me that the local mode is operating (enabled with chronyc local stratum 12 orphan) and 
^? 127.127.1.0                  12  10   377   825    -11us[  -11us] +/-   17us
Then I add a server (chronyc add server 10.61.255.254 iburst maxpoll 6 port 123 prefer)
and I see chrony switching to this server. I now have:
Reference ID    : 0A3DFFFE (10.61.255.254)
Stratum         : 5
Ref time (UTC)  : Mon Oct 12 16:29:08 2020
System time     : 0.151633009 seconds fast of NTP time
Last offset     : +0.000192363 seconds
RMS offset      : 0.070889302 seconds
Frequency       : 63.148 ppm fast
Residual freq   : +184.986 ppm
Skew            : 0.132 ppm
Root delay      : 0.118800372 seconds
Root dispersion : 0.033694923 seconds
Update interval : 2.1 seconds
Leap status     : Normal
with the local clock still available:
^? 127.127.1.0                  12  10   377   180   -246ms[  -12us] +/- 2036us
^* 10.61.255.254                 4   6    37     7   -147us[  +11ms] +/-  103ms
So far it behave as I expected. But now if I remove the server I added (chronyc delete 10.61.255.254)
I would expect to return the the first situation. Instead after some time I end-up with this:
Reference ID    : 7F7F0100 (127.127.1.0)
Stratum         : 12
Ref time (UTC)  : Mon Oct 12 16:50:56 2020
System time     : 0.000032901 seconds fast of NTP time
Last offset     : +0.000018242 seconds
RMS offset      : 0.044247311 seconds
Frequency       : 72.399 ppm fast
Residual freq   : +0.025 ppm
Skew            : 9.118 ppm
Root delay      : 0.000058132 seconds
Root dispersion : 0.027406862 seconds
Update interval : 64.6 seconds
Leap status     : Normal
which is not exactly local mode (reference id is not 7F7F0101). Is this behavior correct? Local clock seems to be used:
^? 127.127.1.0                  12   6   377    20    -11us[  -11us] +/-   31ms
I also have an other question: from my experiments I noted that chrony "takes time" to switch the source used for synchronization to an other one when it becomes unreachable. The time I saw is greater than half an hour. Is there some configuration options that may be used to adjust this delay?
Kind regards,
Antoine.