Re: Re: [chrony-dev] Issue about chronyd synchronize to local clock

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



On Thu, 25 Jun 2020, xqmeng80@xxxxxxxxxxx wrote:

   Is there a way or some configuration to make chronyd client always successfully synchronize to itself.

Why? Your database program is designed to only work if the system clock is
synchronized to UTC. It seems that you want to break that, and wnat to use
chrony to help you do that. The directive rtcsync should switch on that flag
when the system clock really is synchronized. Is that not what you want? Or
you can take Miroslav's advice and periodically (eg every minute if necessary)
use adjtimex to switch off that flag. Or hack the kernel code to never
switch it off. Or hack the database code to stop checking on that flag.


_____________________________________________________________________________________________________________________
       
From: Miroslav Lichvar
Date: 2020-06-25 22:54
To: chrony-dev
Subject: Re: Re: [chrony-dev] Issue about chronyd synchronize to local clock
On Thu, Jun 25, 2020 at 10:44:29PM +0800, xqmeng80@xxxxxxxxxxx wrote:
>    As the application runs on the NTP server machine, time on the machine is thinked accurate. I just can't
figure out why synchonizing to itself will make
>    the NTP synchronization status becomes No after several hours.
 
Because the NTP stratum will increase with each iteration in the loop
and the client will stop synchronizing when it reaches 16. Then
it will just drift and when the root dispersion is too large, the
clock will be considered "unsynchronized".
 
--
Miroslav Lichvar
 
 
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.
 




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