How accurate is NTP for server time synchronization?
I am writing a service that requires a set of servers (some of which act as clients, and some of them are servers) are synchronized with second level granularity. I am wondering if NTP is best used, or if something is better?
Should I run an ntp server on one of them, and others use this as a source? Any other recommendations / horrors with NTP?
All servers are Linux.
Update: service levels:
I want one server to be accurate UTC (second level, not microsecond or such), and I would like all other servers to be the same as one server, regardless of whether its exact UTC or (events received by this server from several places at different intervals, I require that all these events be the same โrelativeโ ts. No, I canโt have a main event TS server when they enter, because it will require saving the offset (when the event really happened and when it was registered about, which requires a lot of extra work), and this inappropriately complicates matters.
Currently, I configured one server as stratum 2 timeserver, using some GPS source sources as servers in ntp.conf, on other servers I installed this server as the only server in ntp.conf.
I hope this will be enough. Thanks!
source share