mocoagent

package module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

GitHub release CI PkgGoDev Go Report Card

MOCO Agent

MOCO Agent is a sidecar program of MOCO.

Documentation

docs directory contains documents about designs and specifications.

Docker images

Docker images are available on GitHub Container Registry

Documentation

Index

Constants

View Source
const (
	AdminUser       = "moco-admin"
	AgentUser       = "moco-agent"
	ReplicationUser = "moco-repl"
	CloneDonorUser  = "moco-clone-donor"
	ExporterUser    = "moco-exporter"
	BackupUser      = "moco-backup"
	ReadOnlyUser    = "moco-readonly"
	WritableUser    = "moco-writable"
)

MySQL user names for MOCO

View Source
const (
	AdminPasswordEnvKey       = "ADMIN_PASSWORD"
	AgentPasswordEnvKey       = "AGENT_PASSWORD"
	ReplicationPasswordEnvKey = "REPLICATION_PASSWORD"
	CloneDonorPasswordEnvKey  = "CLONE_DONOR_PASSWORD"
	ExporterPasswordKey       = "EXPORTER_PASSWORD"
	BackupPasswordKey         = "BACKUP_PASSWORD"
	ReadOnlyPasswordEnvKey    = "READONLY_PASSWORD"
	WritablePasswordEnvKey    = "WRITABLE_PASSWORD"
)

ENV keys for getting MySQL user passwords

View Source
const (
	// PodNameEnvKey is the ENV key of the own pod name
	PodNameEnvKey = "POD_NAME"

	// ClusterNameEnvKey is the ENV key of the cluster where the agent located
	ClusterNameEnvKey = "CLUSTER_NAME"
)

ENV keys for the values propergated by Kubernetes resource

View Source
const (
	// VarLogPath is a path for /var/log/mysql.
	VarLogPath = "/var/log/mysql"

	// MySQLAdminPort is a port number for MySQL Admin
	MySQLAdminPort = 33062

	// MySQLErrorLogName is a filekey of error log for MySQL.
	MySQLErrorLogName = "mysql.err"

	// MySQLSlowLogName is a filekey of slow query log for MySQL.
	MySQLSlowLogName = "mysql.slow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
cp

Jump to

Keyboard shortcuts

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