Re: [chrony-users] chrony switch to low stratum very slow |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] chrony switch to low stratum very slow
- From: chuang213 <chuang213@xxxxxxxxx>
- Date: Thu, 8 Aug 2019 19:20:07 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=emC/dhj9we6NJZwSnq0dM5raIBrQrYnp5oLkXBcnqsw=; b=pftNGwOhVK3YW2oZAdPDUL63UHsROOZ2f5II0OzPRCqqvuCbTTKKfGz0jstZ7H45FA wONQ/dMJlxdTvGvkrZ08+gOJNr0cSa86z2tRHrXbrG5Eoy/Il9WBI8duWsIpPBzE8qO8 eLuciJEMqh1AudZM/+s2IJ+Zow/c8xQpsRmjg2uP1iGokb5IR4kvzmxgAknkL+49vfv0 dSUVrNsdmAHCwyisSUfChdkY2jW+hXsjG9V+wUje+PLBO2MnyilW7uwGdYhL8pZrpg4u DBfHJijo2AG69CGmQbWT2uEJLVXglfBBRe2gPw5z44iCvuKCXmW+8SqKFM+fla93ZE9g R66A==
Thanks for the advice and I'll play around based on your advice.
As you can see from the log, the delayed switch caused the local
clock's offset from about 10 us to 300 us. I think it's better to
consider the factor of unreachable server.
Frank Huang
On Thu, Aug 8, 2019 at 12:20 AM Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> On Wed, Aug 07, 2019 at 12:02:50PM -0700, chuang213 wrote:
> > 2019-08-07 00:38:35 172.19.40.23 2 -14.307 0.054
> > -6.028e-06 N 5 2.563e-05 7.701e-06 2.349e-04 1.930e-05 2.297e-04
> > 2019-08-07 01:10:33 192.168.10.9 3 -14.307 0.000
> > -3.306e-04 N 3 2.376e-04 7.130e-09 4.031e-04 3.629e-05 2.183e-03
>
> > it seemed it took 16 seconds (the poll period) to switch server from
> > stratum 3 to stratum 2. However, it took almost 32 minute, or 1918
> > seconds to switch server from stratum 3 to stratum 2.
>
> To me that looks about right. The second source not only has a higher
> stratum, but it has also has a larger root delay and dispersion. With
> the default stratumweight and reselectdist, the lower stratum source
> has to gain about 1300 milliseconds to be comparable to the other
> source, and if the dispersion rate is at 1 ppm (maxclockerror), it
> will take more than 1300 seconds for the scales to switch in favor of
> the other source.
>
> You can set stratumweight and reselectdist to 0, but there will still
> be some delay due to the increase in root delay and dispersion, and
> the reselect process itself.
>
> > Although I know lower stratum server is in favor but when it is
> > unreachable, it should switch to other reachable server, sometimes
> > lower stratum.
>
> chronyd doesn't care about reachability very much. An old accurate
> source that tracked very well may still be preferred over less
> accurate/stable sources.
>
> --
> 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.