3

(1)autostart one ntpd service in all cluster nodes and point the reference serve to one LAN server. (2)use crontab to ntpdate every certain minutes. In cluster environment, which will be a better method for time synchronization. For the first method, i think what we need is one ntp server and all the other nodes sync time from it, but not let all cluster nodes be one ntp server.

Thanks in advance

1
  • How well do you think option 2 would work if the clock is too fast? Sep 27, 2012 at 7:07

2 Answers 2

2

The option (1) is preferable as ntpd is capable to correct the constant error of the machine clock. If you use option (2) then the time is not counted monotonically. As for all cluster nodes be one ntp server - yes, I think it is an overkill.

0
0

And the most important, i found that with the first method, our cluster nodes drift more than 15 seconds frequently. Thanks to Linux ntpd and ntpdate service now i know the reason, maybe for some reason the timedrift is bigger than 2 seconds and ntpd refused to do anything then.

For what David Schwartz said, i found this useful: As mentioned elsewhere, NTP provides a smooth time correction. If the applications on your server don't mind have whole seconds go missing, or doing the same seconds over again, then ntpd doesn't gain you much over ntpdate.

If on the other hand you do have time-sensitive applications that are sensitive to seconds, or even worse are sensitive to partial seconds, then ntpd is by far the better choice. Novell eDirectory timestamps updates for update-collision handling, which becomes critical if the updates come very fast (such as during the morning login rush). A syslog server needs to have time accurate to at least the half second in order to keep sane logs. Link:https://serverfault.com/questions/16467/compare-ntpd-and-ntpdate

Thanks, all.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .