mocoagent

package module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 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

Development

Prerequisites

This project uses aqua to manage development tools. Before starting development, please install aqua by following the instructions at https://aquaproj.github.io/docs/install.

Once aqua is installed, the required development tools will be automatically installed when you run make commands.

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

	// 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 command
moco-agent command
moco-init command

Jump to

Keyboard shortcuts

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