Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClusterType = "worker_pool" JobType = "job_group" )
Provides failsafe notification types.
Variables ¶
This section is empty.
Functions ¶
func FailsafeCheck ¶ added in v0.0.2
func FailsafeCheck(state *structs.ScalingState, config *structs.Config, threshold int, message *notifier.FailureMessage) (passing bool)
FailsafeCheck implements the failsafe mode circuit breaker that will trip automatically if enough critical failures are detected. Once tripped, the circuit breaker must be reset by a human operator.
func SetFailsafeMode ¶ added in v0.0.2
func SetFailsafeMode(state *structs.ScalingState, config *structs.Config, enabled bool, message *notifier.FailureMessage) (err error)
SetFailsafeMode is used to toggle the distributed failsafe mode lock.
Types ¶
type LeaderCandidate ¶ added in v0.0.2
type LeaderCandidate struct {
// contains filtered or unexported fields
}
LeaderCandidate runs the leader election.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is the main runner struct.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.