clusterset

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MySQLShellRunnerAppName   = "mysqlshell-runner"
	MySQLShellRunnerComponent = "mysqlshell-runner"
	MySQLShellRunnerPassword  = "MYSQL_PASSWORD"
)
View Source
const (
	ClusterSetReplicaManagerAppName   = "clusterset-replica-manager"
	ClusterSetReplicaManagerComponent = "clusterset-replica-manager"

	CmdAddReplica    = "add-replica"
	CmdRemoveReplica = "remove-replica"
	CmdSetPrimary    = "set-primary"
	CmdRejoinCluster = "rejoin-cluster"
)
View Source
const (
	StatusHealthy  string = "HEALTHY"
	StatusUnknown  string = "UNKNOWN"
	GlobalStatusOK string = "OK"
)
View Source
const (
	ClusterRolePrimary string = "PRIMARY"
	ClusterRoleReplica string = "REPLICA"
)

Variables

This section is empty.

Functions

func ClusterSetManagerJob

func ClusterSetManagerJob(
	pcs *apiv1.PerconaServerMySQLClusterSet,
	cluster *apiv1.ClusterSetCluster,
	cmd string,
	args []string,
	image, serviceAccount string,
) *batchv1.Job

func ClusterSetManagerJobKey added in v1.3.0

func ClusterSetManagerJobKey(pcs *apiv1.PerconaServerMySQLClusterSet, clusterName, cmd string) types.NamespacedName

Types

type ClusterStatus added in v1.3.0

type ClusterStatus struct {
	ClusterRole  string                    `json:"clusterRole"`
	GlobalStatus string                    `json:"globalStatus"`
	Primary      string                    `json:"primary"`
	Topology     map[string]TopologyStatus `json:"topology"`
}

type ClusterStatuses added in v1.3.0

type ClusterStatuses map[string]ClusterStatus

func (ClusterStatuses) IntoAPI added in v1.3.0

type Status

type Status struct {
	Clusters              ClusterStatuses `json:"clusters"`
	DomainName            string          `json:"domainName"`
	GlobalPrimaryInstance string          `json:"globalPrimaryInstance"`
	PrimaryCluster        string          `json:"primaryCluster"`
	Status                string          `json:"status"`
	StatusText            string          `json:"statusText"`
}

func (*Status) GetPrimaryCluster

func (s *Status) GetPrimaryCluster() string

type TopologyStatus added in v1.3.0

type TopologyStatus struct {
	Status                            string `json:"status"`
	MemberRole                        string `json:"memberRole"`
	MemberState                       string `json:"memberState"`
	ReplicationLagFromImmediateSource string `json:"replicationLagFromImmediateSource"`
	ReplicationLagFromOriginalSource  string `json:"replicationLagFromOriginalSource"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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