Closed EdHurtig closed 7 years ago
@eherot While we are on the topic of this cookbook, did you get a chance to look at this issue. / could you run the vagrant test suite which was failing?
I completely refactored this cookbook to break the client recipe out into its own cookbook, which is not (yet) public because it's not a pure application cookbook (though I did grant you permission to look at it).
With the discovery recipe no longer expecting to do both the client and server jobs, it was much easier to fix the above issue.
Allrighty, I'll give it a look over after this... interesting... HyperLoop test week is over
Note: need to look over still
I hope it's not too bad because it's been in production for a few weeks now ;-)
lol yeah, my tests indicated that the client servers were just being configured to look at the public pool so they might end up drifting to 200ms apart from each other which isn't the end of the world but definitely defeats the purpose of a private NTP pool.
Oh and "someone" removed the vagrant kitchen config leaving only the AWS config 👀
grumbles softly
Yeah we've mostly been moving away from Vagrant because testing multiple cookbooks at once using Vagrant tends to crash my laptop. Thankfully Apple will soon be releasing a powerful new MacBook that so I won't have this problem anymore (oh, wait...)
PS. Clients definitely aren't using the public pool. That would indeed be a problem.
Wait, prod clients are currently using the public pool?
I think the command to check is
$ ntpq -p -n
// Some table listing the currently connected clients... should be the NTP Master IP and the slaves ONLY
Nope:
$ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.0.111.172 128.138.141.172 2 u 815 1024 377 0.532 2.688 0.572
+10.0.112.113 10.0.111.172 3 u 569 1024 377 0.337 1.335 0.454
+10.0.113.249 10.0.111.172 3 u 687 1024 377 0.955 1.947 1.055
Awesome :+1:
Client configs are all looking to public servers and not pulling in the private servers
DETAILS
https://travis-ci.org/evertrue/ntp_cluster-cookbook/jobs/167820174
REGRESSION
Test passes in v1.1.3 - Travis Build.
RELATED
Discovered in #10