[ntp:questions] "ntpd[7602]: synchronized to"

Florin Andrei florin at andrei.myip.org
Thu May 26 21:17:11 UTC 2011


On 05/26/2011 01:06 PM, Chuck Swiger wrote:
> On May 26, 2011, at 12:56 PM, Florin Andrei wrote:
>> I wish there was a way to "bind" several clients together. You know, tell them to make "group decisions" when following / unfollowing any servers - "y'all either follow the same server(s), or peer with each other when all servers are offline, but do it _all_together_". This would be very useful for a cluster.
>
> In which case, you might want to consider using NTP broadcast/multicast for time sync instead:
>
>    http://doc.ntp.org/4.2.6p3/manyopt.html

Could I have the nodes peer with each other, and use the orphan mode? 
E.g., for a 3 node cluster, use this:

############################################
server ntp1 iburst prefer
server ntp2 iburst prefer
server ntp3 iburst prefer
server ntp4 iburst prefer

peer node1 iburst
peer node2 iburst
peer node3 iburst

tos cohort 1
tos orphan 14

restrict ntp1 nomodify notrap nopeer noquery
restrict ntp2 nomodify notrap nopeer noquery
restrict ntp3 nomodify notrap nopeer noquery
restrict ntp4 nomodify notrap nopeer noquery

restrict node1 nomodify notrap
restrict node2 nomodify notrap
restrict node3 nomodify notrap

restrict 127.0.0.1
restrict default ignore
############################################

-- 
Florin Andrei
http://florin.myip.org/



More information about the questions mailing list