mysqlcheck

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepairICStuckDeleting

func RepairICStuckDeleting(ctx spi.ComponentContext) error

RepairICStuckDeleting - temporary workaround to repair issue where a InnoDBCluster object can be stuck terminating (e.g. during uninstall). The workaround is to recycle the mysql-operator.

Types

type MySQLChecker

type MySQLChecker struct {
	RepairTimeout time.Duration
	// contains filtered or unexported fields
}

MySQLChecker periodically checks the state of MySQL related pods and repairs any that are found to be in a stuck state (e.g. terminating, waiting for readiness gates).

func GetMySQLChecker

func GetMySQLChecker() *MySQLChecker

GetMySQLChecker - returns the value of mySQLChecker

func NewMySQLChecker

func NewMySQLChecker(c clipkg.Client, tick time.Duration, timeout time.Duration) (*MySQLChecker, error)

NewMySQLChecker - instantiate a MySQLChecker context

func (*MySQLChecker) Pause

func (mc *MySQLChecker) Pause()

Pause pauses the MySQLChecker if it was running. It is safe to call Pause multiple times

func (*MySQLChecker) RepairMySQLPodStuckDeleting

func (mc *MySQLChecker) RepairMySQLPodStuckDeleting() error

RepairMySQLPodStuckDeleting - temporary workaround to repair issue where a MySQL pod can be stuck terminating (e.g. during uninstall). The workaround is to recycle the mysql-operator.

func (*MySQLChecker) RepairMySQLPodsWaitingReadinessGates

func (mc *MySQLChecker) RepairMySQLPodsWaitingReadinessGates() error

RepairMySQLPodsWaitingReadinessGates - temporary workaround to repair issue were a MySQL pod can be stuck waiting for its readiness gates to be met. The workaround is to recycle the mysql-operator.

func (*MySQLChecker) RepairMySQLRouterPodsCrashLoopBackoff

func (mc *MySQLChecker) RepairMySQLRouterPodsCrashLoopBackoff() error

RepairMySQLRouterPodsCrashLoopBackoff - repair mysql-router pods stuck in CrashLoopBackoff. The workaround is to delete the pod.

func (*MySQLChecker) Start

func (mc *MySQLChecker) Start()

Start starts the MySQLChecker if it is not already running. It is safe to call Start multiple times, additional goroutines will not be created

Jump to

Keyboard shortcuts

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