fandrei / AppMetrics

Apache License 2.0
8 stars 2 forks source link

Generate report on estimated accuracy of node clocks #58

Closed mrdavidlaing closed 12 years ago

mrdavidlaing commented 12 years ago

Figure out how to measure the accuracy; probably through the use of a third party program

At a later stage we can focus on improving this accuracy.

mrdavidlaing commented 12 years ago

Meinberg's NTP service & monitor tools - http://www.meinberg.de/english/sw/ntp.htm - look quite comprehensive

mrdavidlaing commented 12 years ago

Here is another tool that is useful for visualising the NTP stats - loopstats & peerstats - http://satsignal.eu/software/net.htm#NTPplotter

mrdavidlaing commented 12 years ago

Seems that Amazon run some NTP servers -

server 0.amazon.pool.ntp.org
server 1.amazon.pool.ntp.org
server 2.amazon.pool.ntp.org
server 3.amazon.pool.ntp.org

No idea where these are located, or if they resolve to different machines depending on datacenter

fandrei commented 12 years ago

pool.ntp.org resolves to the nearest NTP server, and it seems it includes these servers too. What about idea to include windows port of ntpd into the latency collector?

mrdavidlaing commented 12 years ago

If that is possible, then I think including windows port of ntpd in latency collector is excellent idea

mrdavidlaing commented 12 years ago

Looks like after a few days of running windows port of NTPd, a m1.small Windows 2008 machine in US-East can have time accuracy of +- 5ms, which is good enough for our measurement purposes.

mrdavidlaing commented 12 years ago

As a comparison, here is a graph of the ntpd stats for labs.cityindex.com, an Ubuntu 11.10 machine running on a t1.micro instance in EU-West. This seems to have an accuracy of +- 1 ms

mrdavidlaing commented 12 years ago

As long as we're running an NTP service on the windows EC2 machine (eg: http://www.meinberg.de/english/sw/ntp.htm#ntp_nt_stable) then the clock accuracy seems to be within 5ms. This is good enough for our measurements.