[chrony-users] chrony switch to low stratum very slow

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


I am testing the chrony on the system:

Ubuntu 14.04.5 LTS, Trusty Tahr
uname -a
Linux test 4.4.32 #1 SMP Fri Feb 15 18:15:47 PST 2019 x86_64 x86_64
x86_64 GNU/Linux
chronyd --version
chronyd (chrony) version 3.4 (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP
-SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)

The system has two Ethernet port, one to outside with 172.19.40.1/23,
another one is local 192.168.10.1/24

I tested to connect/disconnect the outside  connection to see how
chrony behavior. here is from /var/log/chrony/tracking.log
2019-08-07 00:18:30 192.168.10.9     3    -13.820      0.114
-2.498e-06 N  3  1.551e-05 -1.567e-06  3.144e-04  1.010e-04  2.611e-04
2019-08-07 00:18:47 192.168.10.9     3    -13.825      0.111
-1.229e-06 N  3  1.568e-05  8.938e-07  3.968e-04  5.977e-05  2.772e-04
2019-08-07 00:19:03 192.168.10.9     3    -13.833      0.110
-1.452e-06 N  3  1.984e-05  1.933e-06  3.144e-04  1.088e-04  2.781e-04
2019-08-07 00:19:19 192.168.10.9     3    -13.844      0.111
-1.883e-06 N  3  2.772e-05  2.995e-06  3.144e-04  1.129e-04  2.874e-04
2019-08-07 00:19:35 192.168.10.9     3    -13.856      0.098
-2.548e-06 N  3  3.288e-05  4.303e-06  3.144e-04  1.092e-04  2.932e-04
2019-08-07 00:19:51 172.19.40.23     2    -13.902      0.113
-1.776e-05 N  5  6.266e-05  5.908e-06  2.046e-04  4.573e-05  2.910e-04
2019-08-07 00:20:48 172.19.40.23     2    -13.972      0.105
-9.074e-06 N  5  7.709e-05  2.923e-06  2.425e-04  4.009e-05  2.351e-04
2019-08-07 00:21:20 172.19.40.23     2    -13.990      0.081
2.763e-07 N  5  8.214e-05  1.129e-05  2.363e-04  3.902e-05  2.092e-04
2019-08-07 00:21:52 172.19.40.23     2    -14.090      0.149
-3.840e-05 N  5  4.574e-05  1.001e-05  2.323e-04  3.813e-05  2.034e-04
2019-08-07 00:22:24 172.19.40.23     2    -14.144      0.097
-4.630e-06 N  5  4.560e-05  1.476e-05  2.307e-04  3.709e-05  2.408e-04
2019-08-07 00:22:57 172.19.40.23     2    -14.198      0.092
-1.083e-05 N  5  3.246e-05  1.388e-05  2.321e-04  3.596e-05  2.072e-04
2019-08-07 00:23:29 172.19.40.23     2    -14.210      0.064
-3.854e-06 N  5  2.936e-05  1.218e-05  2.322e-04  3.571e-05  2.121e-04
2019-08-07 00:24:01 172.19.40.23     2    -14.223      0.056
-1.091e-05 N  5  2.402e-05  1.022e-05  2.019e-04  3.509e-05  2.020e-04
===================================================================================================================================
   Date (UTC) Time     IP Address   St   Freq ppm   Skew ppm
Offset L Co  Offset sd Rem. corr. Root delay Root disp. Max. error
===================================================================================================================================
2019-08-07 00:24:33 172.19.40.23     2    -14.224      0.047
-1.903e-06 N  5  2.139e-05  8.619e-06  2.019e-04  3.725e-05  1.914e-04
2019-08-07 00:25:37 172.19.40.23     2    -14.234      0.046
-4.439e-06 N  5  1.350e-05  3.645e-06  2.019e-04  4.339e-05  2.162e-04
2019-08-07 00:26:42 172.19.40.23     2    -14.238      0.035
-2.843e-06 N  5  1.316e-05  4.830e-06  1.894e-04  3.526e-05  2.205e-04
2019-08-07 00:27:47 172.19.40.23     2    -14.236      0.033
5.749e-06 N  5  2.028e-05  4.724e-06  1.894e-04  3.931e-05  2.042e-04
2019-08-07 00:28:52 172.19.40.23     2    -14.228      0.033
5.932e-06 N  5  1.725e-05 -9.899e-07  1.894e-04  4.295e-05  2.023e-04
2019-08-07 00:29:57 172.19.40.23     2    -14.223      0.029
2.349e-06 N  5  1.390e-05 -5.072e-06  1.894e-04  4.575e-05  2.119e-04
2019-08-07 00:31:01 172.19.40.23     2    -14.222      0.027
3.561e-07 N  5  1.481e-05 -4.794e-06  1.894e-04  4.746e-05  2.145e-04
2019-08-07 00:32:06 172.19.40.23     2    -14.215      0.030
-1.423e-06 N  5  1.702e-05 -3.948e-06  1.894e-04  4.801e-05  2.141e-04
2019-08-07 00:33:12 172.19.40.23     2    -14.223      0.027
-1.270e-06 N  5  1.622e-05 -2.274e-06  1.894e-04  4.818e-05  2.126e-04
2019-08-07 00:34:16 172.19.40.23     2    -14.229      0.028
-6.191e-06 N  5  2.195e-05 -9.632e-07  1.894e-04  4.953e-05  2.099e-04
2019-08-07 00:35:21 172.19.40.23     2    -14.239      0.029
-3.556e-06 N  5  2.074e-05  4.389e-06  1.894e-04  5.154e-05  2.163e-04
2019-08-07 00:36:26 172.19.40.23     2    -14.242      0.027
-3.236e-06 N  5  2.459e-05  5.913e-06  1.894e-04  5.329e-05  2.212e-04
2019-08-07 00:37:31 172.19.40.23     2    -14.271      0.054
-1.550e-05 N  5  2.247e-05  6.871e-06  2.364e-04  2.002e-05  2.242e-04
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
2019-08-07 01:11:05 192.168.10.9     3    -14.307      0.000
1.134e-05 N  3  2.356e-04  3.254e-04  4.031e-04  4.023e-05  6.010e-04
2019-08-07 01:11:38 192.168.10.9     3    -14.307      0.001
-6.167e-05 N  3  1.305e-04  3.535e-05  3.991e-04  3.588e-05  5.884e-04
2019-08-07 01:12:10 192.168.10.9     3    -14.307      0.003
-1.359e-05 N  3  1.187e-04  4.919e-05  3.991e-04  3.939e-05  3.669e-04
2019-08-07 01:12:43 192.168.10.9     3    -14.308      0.008
-3.672e-05 N  3  5.102e-05  4.059e-05  4.056e-04  3.646e-05  3.368e-04

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.

I used plug/unplug the interface on 172.19.40.1 network to conduct the test.

Although I know lower stratum server is in favor but when it is
unreachable, it should switch to other reachable server, sometimes
lower stratum.

Regards,

Frank Huang

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