constants

package
v1.6.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResyncDuration is the informer's resync duration
	ResyncDuration = 10 * time.Second

	// PollInterval is the interval to check if the tidb cluster is ready
	PollInterval = 5 * time.Second

	// CheckTimeout is the maximum time to wait for the tidb cluster ready
	CheckTimeout = 30 * time.Minute

	// BackupRootPath is the root path to backup data
	BackupRootPath = "/backup"

	// MetaDataFile is the file which store the dumpling's meta info
	MetaDataFile = "metadata"

	// TikvGCLifeTime is the safe gc life time for dump tidb cluster data
	TikvGCLifeTime = "72h"

	// TikvGCVariable is the tikv gc life time variable name
	TikvGCVariable = "tikv_gc_life_time"

	// TidbMetaDB is the database name for store meta info
	TidbMetaDB = "mysql"

	// TidBMetaTable is the table name for store meta info
	TidbMetaTable = "tidb"

	// DefaultArchiveExtention represent the data archive type
	DefaultArchiveExtention = ".tgz"

	// RcloneConfigFile represents the path to the file that contains rclone
	// configs. This path should be the same as defined in docker entrypoint
	// script from backup-manager/entrypoint.sh. /tmp/rclone.conf
	RcloneConfigFile = "/tmp/rclone.conf"

	// RcloneConfigArg represents the config argument to rclone cmd
	RcloneConfigArg = "--config=" + RcloneConfigFile

	// MetaFile is the file name for meta data of backup with BR
	MetaFile = "backupmeta"

	// BR certificate storage path
	BRCertPath = "/var/lib/br-tls"

	// ServiceAccountCAPath is where is CABundle of serviceaccount locates
	ServiceAccountCAPath = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"

	// DefaultTableRegex is the default regular expression for 'db.table' matching
	DefaultTableRegex = "^(?!(mysql|test|INFORMATION_SCHEMA|PERFORMANCE_SCHEMA|METRICS_SCHEMA|INSPECTION_SCHEMA))"

	// DefaultTableFilter is the default table filter 'db.table' matching
	DefaultTableFilter = "!/^(mysql|test|INFORMATION_SCHEMA|PERFORMANCE_SCHEMA|METRICS_SCHEMA|INSPECTION_SCHEMA)$/.*"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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