Documentation ¶
Index ¶
- Variables
- func AccountedDiscoverInstance(instanceKey inst.InstanceKey, pendingTokens chan bool, ...)
- func AttemptElection() (bool, error)
- func ContinuousAgentsPoll()
- func ContinuousDiscovery()
- func DiscoverInstance(instanceKey inst.InstanceKey)
- func GetHash(input []byte) string
- func GetRandomData() []byte
- func HealthTest() (bool, error)
- func IsElected() (bool, error)
- func StartDiscovery(instanceKey inst.InstanceKey)
- type Token
Constants ¶
This section is empty.
Variables ¶
var ThisHostname string
Functions ¶
func AccountedDiscoverInstance ¶
func AccountedDiscoverInstance(instanceKey inst.InstanceKey, pendingTokens chan bool, completedTokens chan bool)
AccountedDiscoverInstance will call upon DiscoverInstance and will keep track of discovery tokens such that management of multiple discoveries can figure out whether all instances in a topology are accounted for.
func AttemptElection ¶ added in v1.2.20
WriteResolvedHostname stores a hostname and the resolved hostname to backend database
func ContinuousAgentsPoll ¶ added in v1.1.2
func ContinuousAgentsPoll()
ContinuousAgentsPoll starts an asynchronuous infinite process where agents are periodically investigated and their status captured, and long since unseen agents are purged and forgotten.
func ContinuousDiscovery ¶
func ContinuousDiscovery()
ContinuousDiscovery starts an asynchronuous infinite discovery process where instances are periodically investigated and their status captured, and long since unseen instances are purged and forgotten.
func DiscoverInstance ¶
func DiscoverInstance(instanceKey inst.InstanceKey)
DiscoverInstance will attempt discovering an instance (unless it is already up to date) and will list down its master and slaves (if any) for further discovery.
func GetRandomData ¶ added in v1.2.20
func GetRandomData() []byte
func HealthTest ¶ added in v1.3.10
HealthTest attempts to write to the backend database and get a result
func IsElected ¶ added in v1.2.20
ReadResolvedHostname returns the resolved hostname given a hostname, or empty if not exists
func StartDiscovery ¶
func StartDiscovery(instanceKey inst.InstanceKey)
Start discovery begins a one time asynchronuous discovery process for the given instance and all of its topology connected instances. That is, the instance will be investigated for master and slaves, and the routines will follow on each and every such found master/slave. In essense, assuming all slaves in a replication topology are running, and given a single instance in such topology, this function will detect the entire topology.