Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

(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

share|improve this question
    
How well do you think option 2 would work if the clock is too fast? –  David Schwartz Sep 27 '12 at 7:07

2 Answers 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.

share|improve this answer
up vote 0 down vote accepted

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:http://serverfault.com/questions/16467/compare-ntpd-and-ntpdate

Thanks, all.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.