3718 Commits (b1194e83cb79965cf7317e19c859d3d13f77d994)
 

Author SHA1 Message Date
Sean Chittenden b1194e83cb Don't pass in sm, server manager is already in scope 9 years ago
Sean Chittenden a3a0eeeadd Trim residual complexity from server join notifications 9 years ago
Sean Chittenden a71fbe57e3 Only log in FindServers 9 years ago
Sean Chittenden 58246fcc0b Initialize the rebalancce to clientRPCMinReuseDuration 9 years ago
Sean Chittenden 4fec6a9608 Guard against very small or negative rates 9 years ago
Sean Chittenden d9251e30c8 Use range vs for 9 years ago
Sean Chittenden 9c18bb5f1c Comment updates 9 years ago
Sean Chittenden 0b3f6932df Only rotate server list with more than one server 9 years ago
Sean Chittenden 24eb274860 Relocate saveServerConfig next to getServerConfig 9 years ago
Sean Chittenden b00db393e7 Clarify that ConsulClusterInfo is an interface over serf 9 years ago
Sean Chittenden b8bbdb9e7a Reword comment after moving code into new packages 9 years ago
Sean Chittenden 68183c4378 Change initialReblaanaceTimeout to a time.Duration 9 years ago
Sean Chittenden 3433feb93b Negative check: test an invalid condition 9 years ago
Sean Chittenden 0f3ad9c120 Test to make sure bootstrap is missing 9 years ago
Sean Chittenden 7a2d30d1cf Be more Go idiomatic w/ variable names: s/valid/ok/g 9 years ago
Sean Chittenden 9daccb8b41 Fix stale comment 9 years ago
Sean Chittenden db72041063 Add a comment for Client serverMgr 9 years ago
Sean Chittenden 4d4806ab02 Add CHANGELOG entry re: agent rebalancing 9 years ago
Sean Chittenden 828606232e Correct a bogus goimport rewrite for tests 9 years ago
Sean Chittenden da872fee63 Test ServerManager.refreshServerRebalanceTimer 9 years ago
Sean Chittenden a63d5ab963 Add a handful more unit tests to the public interface 9 years ago
Sean Chittenden 8e3c83a258 Rename GetNumServers to NumServers() 9 years ago
Sean Chittenden 18f7befba9 Rename NewServerManger to just New 9 years ago
Sean Chittenden e932e9a435 Rename FindHealthyServer() to FindServer() 9 years ago
Sean Chittenden 49a5a1ab84 cycleServer is a pure function, save the result 9 years ago
Sean Chittenden 94f79d2c3d Missed unit test cruft 9 years ago
Sean Chittenden bc62de541c Update comments to reflect reality 9 years ago
Sean Chittenden d2d55f4bb0 Remove additional cruft from ServerManager's channels 9 years ago
Sean Chittenden d13e3c18c9 Emulate a TryLock using atomic.CompareAndSwap 9 years ago
Sean Chittenden 295af01680 Make use of interfaces 9 years ago
Sean Chittenden fdbb142c3f Simplify error handling 9 years ago
Sean Chittenden c2c73bfeab Unbreak client tests by reverting to original test 9 years ago
Sean Chittenden 0c87463b7e Introduce asynchronous management of consul server lists 9 years ago
Sean Chittenden bad6cb8897 Comment nits 9 years ago
Sean Chittenden bf8c860663 Update Serf to include `serf.NumNodes()` 9 years ago
Sean Chittenden 74bcbc63f8 Use saveServerConfig vs atomic.Value.Store(config) 9 years ago
Sean Chittenden 7f55931d02 Commit a handful of refactoring && copy/paste-o fixes 9 years ago
Sean Chittenden e53704b032 Mutate copies of serverCfg.servers, not original 9 years ago
Sean Chittenden e6c27325d9 rebalanceTimer may be nil during initialization 9 years ago
Sean Chittenden a7091b0837 Properly retain a pointer to the rebalanceTimer 9 years ago
Sean Chittenden 00ff8e5307 Cosmetic and various other wordsmithing cleanups 9 years ago
Sean Chittenden b4db49a62e Document the various functions and their locking 9 years ago
Sean Chittenden 9eb6481d73 Use config convenience method to get config 9 years ago
Sean Chittenden 579e536f58 Move consul.serverConfig out of the consul package 9 years ago
Sean Chittenden c7c551dbe0 Rename serverConfigMtx to serverConfigLock 9 years ago
Sean Chittenden e48b910f87 Refactor out the management of Consul servers 9 years ago
Sean Chittenden 01b637114c Move consul.serverConfig out of the consul package 9 years ago
Sean Chittenden 117c65dc55 Rename serverConfigMtx to serverConfigLock 9 years ago
Sean Chittenden 0eac826573 Refactor out the management of Consul servers 9 years ago
Sean Chittenden b9e5588620 Move consul.serverConfig out of the consul package 9 years ago