RE: [chrony-users] chrony not switching to stratum 10 after loss of references

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Thanks a lot Miroslav for the quick reply; much appreciated!
We will try the 'distance' parameter as you suggest.

Out of curiosity, I wonder if there a way to configure chrony to immediately stop serving time to NTP clients as soon as there are no reachable upstream references (or jump to high stratum level)?


Thanks,
  Andre

--
Andre Charbonneau

Frequency & Time
Metrology Research Centre
National Research Council Canada / Government of Canada
andre.charbonneau@xxxxxxxxxxxxxx / 613-993-3129

Fréquence et temps
Centre de recherche en métrologie
Conseil national de recherches Canada / Gouvernement du Canada
andre.charbonneau@xxxxxxxxxxxxxx / 613-993-3129

-----Original Message-----
From: Miroslav Lichvar <mlichvar@xxxxxxxxxx> 
Sent: June 15, 2023 3:25 AM
To: chrony-users@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [chrony-users] chrony not switching to stratum 10 after loss of references

***Attention*** This email originated from outside of the NRC. ***Attention*** Ce courriel provient de l'extérieur du CNRC.

On Wed, Jun 14, 2023 at 08:50:28PM +0000, Charbonneau, André wrote:
> Root delay      : 0.000000001 seconds
> Root dispersion : 0.003475379 seconds
> Update interval : 16.0 seconds
> Leap status     : Normal
>
> I've also confirmed that it still happily serves time at stratum 1 level if I query it from another system (using ntpdate tool for example from another system).
>
> Is this normal and expected?  I was expecting chrony to fallback to stratum 10 but this is not what is happening.

It's expected in your configuration. The default threshold for switching to the local mode is 1 second of root distance (root delay / 2 + root dispersion).

You would need to specify a smaller threshold, e.g.
local stratum 10 distance 0.003

--
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.


--
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.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/