This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASG Time Sync Interval?

How often does the internal time service on an ASG update with the ntp servers?

My Windows machines, by default, update ONCE a week, and many of them are up to 3-5 minutes slow by the end of the week.  I have updated the Windows update interval to DAILY and would like to point it to my ASG (to save on bandwidth) and was curious how often it actually syncs with the main time servers?


This thread was automatically locked due to age.
  • NTPd is pretty smart on detecting the time drift from the local clock.
    Depending on the drift, ntpd has smaller or larger intervals of query other ntpd servers.

    You can list the other NTP servers and the poll interval via command line:
    ntpdc -c peers 127.0.0.1

    Cheers
     Ulrich
  • Thank you, that's great info!  I didn't know about the smart features in NTPd.  It's a shame Microsoft doesn't have such a feature in the client time sync version used in Windows.
  • Talking about NTP function: I noticed that when you reboot the ASG the ntp server is working a lot of minutes after the asg is up again. We use ks-soft advanced hostmonitor and we detects "up state" of ntp (in all interfaces) 10-15 minutes after all other services of asg are up. It is not a real problem, just a strange behaviour.
  • The clock on my 220 is off by about 5 minutes.  I tried the "ntpdc -c peers 127.0.0.1" command mentioned in another post and it looks like the 220 isn't using any external NTP servers.  Here is the output of that command:
    # ntpdc -c peers 127.0.0.1
         remote           local      st poll reach  delay   offset    disp
    =======================================================================
    *LOCAL(0)        127.0.0.1       10  128   17 0.00000  0.000000 0.96892

    No other servers are listed.  Is that right?  I don't think it is.

    This 220 was part of an HA cluster, but due to a hardware failure it is now running stand-alone.  I looked at the ntp config files in /var/chroot-ntp/etc but none of them show any external servers.

    Anybody know what might be wrong?
  • WebAdmin>>Management>>System Settings>>Time and Date Tab is where you need to check and set NTP servers.  If one is already listed you can try deleting and readding it.  I personally like to use the servers at pool.ntp.org: the internet cluster of ntp servers
    __________________
    ACE v8/SCA v9.3

    ...still have a v5 install disk in a box somewhere.

    http://xkcd.com
    http://www.tedgoff.com/mb
    http://www.projectcartoon.com/cartoon/1
  • Thanks Scott!  That was it.  I was looking around Network Services -> NTP for a place to enter the NTP servers.  I never thought to look under management.
  • A little question about the time changing: if you manually modify the time, the asg recommends to reboot as soon as possible, but the automatic changes via NTP queries don't need a reboot. I imagine that the reason is that in most of cases the time drift between local clock and external NTP servers is very short (some seconds), while manual changing can be larger (some minutes). It would be interesting to know the maximum ammount of seconds after which the reboot is strongly recommended. Does anyone knows this value?
  • I would guess that the reason for the reboot is that when manually changed, Astaro is changing the bios clock using the "clock" command.  NTP is only changing the OS clock with the "date" command.

    Clock drift becomes very concerning after 5 minutes (300 seconds).  That's the default limit for kerberos breaking.
    __________________
    ACE v8/SCA v9.3

    ...still have a v5 install disk in a box somewhere.

    http://xkcd.com
    http://www.tedgoff.com/mb
    http://www.projectcartoon.com/cartoon/1
  • Time sync works fine in my ASG since I ever could think of [:)]

         remote           local      st poll reach  delay   offset    disp
    
    =======================================================================
    =LOCAL(0)        127.0.0.1       10  128    0 0.00000  0.000000 3.99217
    *16-164-ftth.ons 91.20.92.9       2  128  377 0.07005  0.002851 0.06949
    =mx1.xillhosting 91.20.92.9       3  128  377 0.05922 -0.001514 0.07489
    =arethusa.tweake 91.20.92.9       2  128  377 0.05997 -0.001679 0.08345
  • Talking about NTP function: I noticed that when you reboot the ASG the ntp server is working a lot of minutes after the asg is up again. We use ks-soft advanced hostmonitor and we detects "up state" of ntp (in all interfaces) 10-15 minutes after all other services of asg are up. It is not a real problem, just a strange behaviour.


    It's not that strange. 10-15 minutes sounds about right for ntpd to sync with external sources and settle out any jitter in it's clocks before it will begin serving time.