3701 Commits (4d4806ab02583cf9123bdc29d4e5ddc4dc67d175)
 

Author SHA1 Message Date
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
Sean Chittenden a482eaef70 Rename serverConfigMtx to serverConfigLock 9 years ago
Sean Chittenden 9b8767aa67 Refactor out the management of Consul servers 9 years ago
Sean Chittenden 075d1b628f Commit miss re: consuls variable rename 9 years ago
Sean Chittenden 2ca4cc58ce Move consul.serverConfig out of the consul package 9 years ago
Sean Chittenden 0925b26250 Refactor consul.serverParts into server_details.ServerDetails 9 years ago
Sean Chittenden 5be956c310 Rename serverConfigMtx to serverConfigLock 9 years ago
Sean Chittenden b1e392405c Handle the case where there are no healthy servers 9 years ago
Sean Chittenden d4ca349e21 Refactor out the management of Consul servers 9 years ago
Sean Chittenden 7b308d8d7e Add a flag to denote that a server is disabled 9 years ago
Sean Chittenden 6af781d9d5 Rename `lastServer` to `preferredServer` 9 years ago
Sean Chittenden fb0bfcc3cf Introduce GOTEST_FLAGS to conditionally add -v to go test 9 years ago
Sean Chittenden f6ffbf4e96 Warn if serf events have queued up past 80% of the limit 9 years ago
Sean Chittenden 54016f5276 Commit miss re: consuls variable rename 9 years ago
Sean Chittenden f9aa968bf4 Remove lastRPCTime 9 years ago
Sean Chittenden cc86eb0a1a Rename c.consuls to c.consulServers 9 years ago
Sean Chittenden a92cda7bcd Fix whitespace alignment in a comment 9 years ago
Sean Chittenden 146c5b0a59 Use `rand.Int31n()` to get power of two optimization 9 years ago