How to know which class of host are drifting.

53 views
Skip to first unread message

Ashish chugh

unread,
Aug 6, 2018, 2:51:59 PM8/6/18
to public-ntp-discuss
I am facing time drifting problem in my aws ec2 instance, is there is any way to find out which class of my ec2 is drifting.

Jamie Wilkinson

unread,
Aug 6, 2018, 5:48:44 PM8/6/18
to Ashish chugh, public-ntp-discuss
If we assume you're using ntpd on your instances, and that they're all configured to peer with the Google Public NTP service, then you could set up some monitoring that looked at the ntp peer stats regularly for each of your instances.

ntpq -c pe from the commandline will report the performance of the peers on each instance.  
ntpq -c sysinfo will show the local instance's performance.

A script that extracted these values and put them into something like Prometheus could be done in Python.  I'd be surprised if there wasn't already such a thing on the internet.

But if you want a quick answer, running ntpq -c sysinfo on all your instances with a command like clusterssh or mcollective would get you there, but relying on regular manual work to maintain it.

On 7 August 2018 at 04:51, Ashish chugh <ashishc...@gmail.com> wrote:
I am facing time drifting problem in my aws ec2 instance, is there is any way to find out which class of my ec2 is drifting.

--
You received this message because you are subscribed to the Google Groups "public-ntp-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to public-ntp-discuss+unsub...@googlegroups.com.
To post to this group, send email to public-ntp-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/public-ntp-discuss/06d1efbc-d19f-4ca8-9135-c4803a816718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages