Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromoteServers ¶
func PromoteServers(config *autopilot.Config, servers []raft.Server, info map[raft.ServerID]*serverInfo, peers int) ([]raft.Server, *raft.ServerID)
PromoteServers is an advanced policy that has zones and versions. In servers should come all those servers that are not voting at the moment but are stable
Types ¶
type AdvancedAutopilotDelegate ¶
type AdvancedAutopilotDelegate struct {
autopilot.Delegate
// contains filtered or unexported fields
}
AdvancedAutopilotDelegate is a delegate for autopilot operations. This can check zones, versions and non voting servers
func New ¶
func New(logger hclog.InterceptLogger, delegate autopilot.Delegate) *AdvancedAutopilotDelegate
New returns a new AutopilotDelegate using the provided and with improved promotion features
func (*AdvancedAutopilotDelegate) PromoteNonVoters ¶
func (d *AdvancedAutopilotDelegate) PromoteNonVoters(conf *autopilot.Config, health autopilot.OperatorHealthReply) ([]raft.Server, error)
PromoteNonVoters implements autopilot.Delegate.PromoteNonVoters
Click to show internal directories.
Click to hide internal directories.