Hi all,
I’m having some serious issues getting the clock on my droplet to sync decently (I wanted to use my droplet to provide NTP service as part of the pool, but it’s annoying that I can’t provide decently accurate time). ntpd is synced to good time servers, and while initially the clock will be very good (getting down to 1ms or less offset), over time it gets out of sync to the tune of 20-50ms. I know NTP will keep the clock in sync better than this, and I’ve heard of people running NTP servers on DO droplets with much better results than I’m seeing. So it has to be something in my config, but damned if I know what.
Any ideas on what to try? I’m running one of the 512 MB droplets, currently using Ubuntu 16.04 (have also tried CentOS 7.3, with similar issues). Using a pretty standard ntpd config (I am installing/configuring it through Puppet using the puppetlabs module, all I am tweaking is to specify the upstream servers to sync to).
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
From what I remember about running NTP on a virtual environment, you shouldn’t expect the same precision as on hardware, since the clock is emulated.
Where is your server located and which pools do you sync with? The closer, the better.
Are you running multiple-master database/file systems? Or why do you need such precision? Just curious.
Does the ntpd.log give any hints why it isn’t adjusting?
And do you know the other people running, if they’re also running on 512MB droplet? Don’t see why that should be an issue, since the system should almost be idle, but still. And can you ask them for their configuration, so you can match with yours?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.