forked from cybozu-go/moco-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
48 lines (40 loc) · 1.36 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package mocoagent
// MySQL user names for MOCO
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"
)
// ENV keys for getting MySQL user passwords
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 the values propergated by Kubernetes resource
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"
)
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"
)