Commit Graph

3848 Commits (6bc6ce671e20e605e1c92a29d07553627cc325a9)
 

Author SHA1 Message Date
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
James Phillips 77ad084229 Fixes JSON in wildcard query example.
9 years ago
James Phillips d3da5efdb2 Merge pull request #1865 from hashicorp/f-upgrade-boltdb
9 years ago
James Phillips 351778eabb Updates BoltDB to v1.2.0 release.
9 years ago
James Phillips 77eb95ddd8 Merge pull request #1861 from hashicorp/b-flaky-test
9 years ago
James Phillips cd7b3d4b49 Widens coordinate update sleeps in unit tests.
9 years ago