Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running 2 ec2 instances (ubuntu based) behind a load balancer. There seems to be a weird issue where the timestamps generated on these instances differ by 25 secs. This has lead to issues in our application where precise timing is involved.

I thought that the timestamps are supposed to be accurate and synchronized using NTP servers.

Is there any way I can ensure that servers have the timing in sync?

share|improve this question
    
ntp.org –  Ignacio Vazquez-Abrams Apr 9 '12 at 6:33
    
You can use a command like ntpdate -q time.windows.com to check the time accuracy. The error will be the number after the word offset, in seconds. –  David Schwartz Apr 9 '12 at 6:34

1 Answer 1

up vote 3 down vote accepted

You can synchronize time between machines using NTP if you want, but it doesn't happen magically -- it will need to be setup by someone (either as part of your AMI, or during system operation). There's also the possibility that it isn't operating correctly, in which case you'll need to diagnose why that's happening and determine the course of action required to correct it.

share|improve this answer
    
Thanks. I had to install ntp on all of the servers for proper sync. –  mridkash Apr 9 '12 at 6:53

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.