highavailability

package
v0.9.2-beta.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkloadTypeKey = "workloadType"
	Replication     = "Replication"
	Consensus       = "Consensus"
)

Variables

This section is empty.

Functions

func IsHAAvailable

func IsHAAvailable(characterType, workloadType string) bool

Types

type Ha

type Ha struct {
	// contains filtered or unexported fields
}

func GetHa

func GetHa() *Ha

func NewHa

func NewHa(disableDNSChecker bool) *Ha

func (*Ha) HasOtherHealthyMember

func (ha *Ha) HasOtherHealthyMember(cluster *dcs3.Cluster) bool

func (*Ha) IsHealthiestMember

func (ha *Ha) IsHealthiestMember(ctx context.Context, cluster *dcs3.Cluster) bool

func (*Ha) RunCycle

func (ha *Ha) RunCycle()

func (*Ha) ShutdownWithWait

func (ha *Ha) ShutdownWithWait()

func (*Ha) Start

func (ha *Ha) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL