highavailability

package
v0.9.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 14 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) DecreaseClusterReplicas

func (ha *Ha) DecreaseClusterReplicas(cluster *dcs3.Cluster)

func (*Ha) DeleteCurrentMember

func (ha *Ha) DeleteCurrentMember(ctx context.Context, cluster *dcs3.Cluster) error

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