Sv: [chrony-users] Multi-source: No source change from unreachable to reachable one

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


In last test I have made the unreachable source was selected for 10 min.  After that I have stopped the test since it is way too long for our failover requirements.
I will not have the system access for a while but I can write more description and provide debug logs at later time.

Fra: Miroslav Lichvar <mlichvar@xxxxxxxxxx>

Sendt: 10. oktober 2019 16:24

Til: chrony-users@xxxxxxxxxxxxxxxxxxxx <chrony-users@xxxxxxxxxxxxxxxxxxxx>

Emne: Re: [chrony-users] Multi-source: No source change from unreachable to reachable one

 


On Thu, Oct 10, 2019 at 01:53:03PM +0000, Joanna Yurdal wrote:

> chrony.conf:

> refclock SHM 0 poll 2 dpoll 0 refid PTP0 precision 1.0e-9 delay 1.0e-04 prefer

> server 192.168.3.103 iburst minpoll 2

 

> When SHM source looses reachability, each second both s-> last_sample_ago and max_reach_sample_ago are increased by one


> The condition never becomes true and the unreachable(invalid) source remains the selected source forever.



No, it shouldn't be selected forever. How long did you wait?



With each sample dropped by the (reachable) NTP source

max_reach_sample_ago should get smaller and at some point the SHM

source should become "stale" and be unselected, if it doesn't happen

earlier due to increased root distance.



> I did not really understand the intention for this a comparison.

> Was it indented to compare newest sample from unreachable source with the newest sample from reachable source instead?



No, it's supposed to compare the newest sample of the unreachable

source with oldest sample of a reachable source to determine if the

spans of the two sources still overlap.



-- 

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/