config

package
Version: v0.0.0-...-f0721d9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: GPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Include                            string `mapstructure:"include"`
	BaseDir                            string `mapstructure:"monitoring-basedir"`
	WorkingDir                         string `mapstructure:"monitoring-datadir"`
	ShareDir                           string `mapstructure:"monitoring-sharedir"`
	ConfDir                            string `mapstructure:"monitoring-confdir"`
	MonitoringTicker                   int64  `mapstructure:"monitoring-ticker"`
	Socket                             string `mapstructure:"monitoring-socket"`
	TunnelHost                         string `mapstructure:"monitoring-tunnel-host"`
	TunnelCredential                   string `mapstructure:"monitoring-tunnel-credential"`
	MonitorAddress                     string `mapstructure:"monitoring-address"`
	MonitorWriteHeartbeat              bool   `mapstructure:"monitoring-write-heartbeat"`
	MonitorWriteHeartbeatCredential    string `mapstructure:"monitoring-write-heartbeat-credential"`
	Interactive                        bool   `mapstructure:"interactive"`
	Verbose                            bool   `mapstructure:"verbose"`
	LogFile                            string `mapstructure:"log-file"`
	LogSyslog                          bool   `mapstructure:"log-syslog"`
	LogLevel                           int    `mapstructure:"log-level"`
	User                               string `mapstructure:"db-servers-credential"`
	Hosts                              string `mapstructure:"db-servers-hosts"`
	HostsTLSCA                         string `mapstructure:"db-servers-tls-ca-cert"`
	HostsTLSKEY                        string `mapstructure:"db-servers-tls-client-key"`
	HostsTLSCLI                        string `mapstructure:"db-servers-tls-client-cert"`
	PrefMaster                         string `mapstructure:"db-servers-prefered-master"`
	IgnoreSrv                          string `mapstructure:"db-servers-ignored-hosts"`
	Timeout                            int    `mapstructure:"db-servers-connect-timeout"`
	ReadTimeout                        int    `mapstructure:"db-servers-read-timeout"`
	MariaDBBinaryPath                  string `mapstructure:"db-servers-binary-path"`
	DBServersLocality                  string `mapstructure:"db-servers-locality"`
	PRXReadOnMaster                    bool   `mapstructure:"proxy-servers-read-on-master"`
	MasterConnectRetry                 int    `mapstructure:"replication-master-connect-retry"`
	RplUser                            string `mapstructure:"replication-credential"`
	MasterConn                         string `mapstructure:"replication-source-name"`
	ReplicationSSL                     bool   `mapstructure:"replication-use-ssl"`
	MultiMasterRing                    bool   `mapstructure:"replication-multi-master-ring"`
	MultiMasterWsrep                   bool   `mapstructure:"replication-multi-master-wsrep"`
	MultiMaster                        bool   `mapstructure:"replication-multi-master"`
	MultiTierSlave                     bool   `mapstructure:"replication-multi-tier-slave"`
	ReplicationNoRelay                 bool   `mapstructure:"replication-master-slave-never-relay"`
	SwitchWaitKill                     int64  `mapstructure:"switchover-wait-kill"`
	SwitchWaitTrx                      int64  `mapstructure:"switchover-wait-trx"`
	SwitchWaitWrite                    int    `mapstructure:"switchover-wait-write-query"`
	SwitchGtidCheck                    bool   `mapstructure:"switchover-at-equal-gtid"`
	SwitchSync                         bool   `mapstructure:"switchover-at-sync"`
	SwitchMaxDelay                     int64  `mapstructure:"switchover-max-slave-delay"`
	SwitchSlaveWaitCatch               bool   `mapstructure:"switchover-slave-wait-catch"`
	SwitchDecreaseMaxConn              bool   `mapstructure:"switchover-decrease-max-conn"`
	SwitchDecreaseMaxConnValue         int64  `mapstructure:"switchover-decrease-max-conn-value"`
	FailLimit                          int    `mapstructure:"failover-limit"`
	PreScript                          string `mapstructure:"failover-pre-script"`
	PostScript                         string `mapstructure:"failover-post-script"`
	ReadOnly                           bool   `mapstructure:"failover-readonly-state"`
	FailTime                           int64  `mapstructure:"failover-time-limit"`
	FailSync                           bool   `mapstructure:"failover-at-sync"`
	FailEventScheduler                 bool   `mapstructure:"failover-event-scheduler"`
	FailEventStatus                    bool   `mapstructure:"failover-event-status"`
	FailRestartUnsafe                  bool   `mapstructure:"failover-restart-unsafe"`
	MaxFail                            int    `mapstructure:"failover-falsepositive-ping-counter"`
	FailResetTime                      int64  `mapstructure:"failcount-reset-time"`
	FailMode                           string `mapstructure:"failover-mode"`
	FailMaxDelay                       int64  `mapstructure:"failover-max-slave-delay"`
	CheckFalsePositiveHeartbeat        bool   `mapstructure:"failover-falsepositive-heartbeat"`
	CheckFalsePositiveMaxscale         bool   `mapstructure:"failover-falsepositive-maxscale"`
	CheckFalsePositiveHeartbeatTimeout int    `mapstructure:"failover-falsepositive-heartbeat-timeout"`
	CheckFalsePositiveMaxscaleTimeout  int    `mapstructure:"failover-falsepositive-maxscale-timeout"`
	CheckFalsePositiveExternal         bool   `mapstructure:"failover-falsepositive-external"`
	CheckFalsePositiveExternalPort     int    `mapstructure:"failover-falsepositive-external-port"`
	Autorejoin                         bool   `mapstructure:"autorejoin"`
	AutorejoinFlashback                bool   `mapstructure:"autorejoin-flashback"`
	RejoinScript                       string `mapstructure:"autorejoin-script"`
	AutorejoinMysqldump                bool   `mapstructure:"autorejoin-mysqldump"`
	AutorejoinBackupBinlog             bool   `mapstructure:"autorejoin-backup-binlog"`
	AutorejoinSemisync                 bool   `mapstructure:"autorejoin-flashback-on-sync"`
	AutorejoinNoSemisync               bool   `mapstructure:"autorejoin-flashback-on-unsync"`
	AutorejoinSlavePositionalHearbeat  bool   `mapstructure:"autorejoin-slave-positional-hearbeat"`
	AutorejoinZFSFlashback             bool   `mapstructure:"autorejoin-zfs-flashback"`
	CheckType                          string `mapstructure:"check-type"`
	CheckReplFilter                    bool   `mapstructure:"check-replication-filters"`
	CheckBinFilter                     bool   `mapstructure:"check-binlog-filters"`
	CheckGrants                        bool   `mapstructure:"check-grants"`
	RplChecks                          bool   `mapstructure:"check-replication-state"`
	ForceSlaveHeartbeat                bool   `mapstructure:"force-slave-heartbeat"`
	ForceSlaveHeartbeatTime            int    `mapstructure:"force-slave-heartbeat-time"`
	ForceSlaveHeartbeatRetry           int    `mapstructure:"force-slave-heartbeat-retry"`
	ForceSlaveGtid                     bool   `mapstructure:"force-slave-gtid-mode"`
	ForceSlaveNoGtid                   bool   `mapstructure:"force-slave-no-gtid-mode"`
	ForceSlaveSemisync                 bool   `mapstructure:"force-slave-semisync"`
	ForceSlaveReadOnly                 bool   `mapstructure:"force-slave-readonly"`
	ForceBinlogRow                     bool   `mapstructure:"force-binlog-row"`
	ForceBinlogAnnotate                bool   `mapstructure:"force-binlog-annotate"`
	ForceBinlogCompress                bool   `mapstructure:"force-binlog-compress"`
	ForceBinlogSlowqueries             bool   `mapstructure:"force-binlog-slowqueries"`
	ForceBinlogChecksum                bool   `mapstructure:"force-binlog-checksum"`
	ForceInmemoryBinlogCacheSize       bool   `mapstructure:"force-inmemory-binlog-cache-size"`
	ForceDiskRelayLogSizeLimit         bool   `mapstructure:"force-disk-relaylog-size-limit"`
	ForceDiskRelayLogSizeLimitSize     uint64 `mapstructure:"force-disk-relaylog-size-limit-size"`
	ForceSyncBinlog                    bool   `mapstructure:"force-sync-binlog"`
	ForceSyncInnoDB                    bool   `mapstructure:"force-sync-innodb"`
	ForceNoslaveBehind                 bool   `mapstructure:"force-noslave-behind"`
	Spider                             bool   `mapstructure:"spider"`
	BindAddr                           string `mapstructure:"http-bind-address"`
	HttpPort                           string `mapstructure:"http-port"`
	HttpServ                           bool   `mapstructure:"http-server"`
	HttpRoot                           string `mapstructure:"http-root"`
	HttpAuth                           bool   `mapstructure:"http-auth"`
	HttpBootstrapButton                bool   `mapstructure:"http-bootstrap-button"`
	SessionLifeTime                    int    `mapstructure:"http-session-lifetime"`
	Daemon                             bool   `mapstructure:"daemon"`
	MailFrom                           string `mapstructure:"mail-from"`
	MailTo                             string `mapstructure:"mail-to"`
	MailSMTPAddr                       string `mapstructure:"mail-smtp-addr"`
	Heartbeat                          bool   `mapstructure:"heartbeat-table"`
	ExtProxyOn                         bool   `mapstructure:"extproxy"`
	ExtProxyVIP                        string `mapstructure:"extproxy-address"`
	MdbsProxyOn                        bool   `mapstructure:"shardproxy"`
	MdbsProxyHosts                     string `mapstructure:"shardproxy-servers"`
	MdbsProxyUser                      string `mapstructure:"shardproxy-user"`
	MdbsProxyCopyGrants                bool   `mapstructure:"shardproxy-copy-grants"`
	MxsOn                              bool   `mapstructure:"maxscale"`
	MxsHost                            string `mapstructure:"maxscale-servers"`
	MxsPort                            string `mapstructure:"maxscale-port"`
	MxsUser                            string `mapstructure:"maxscale-user"`
	MxsPass                            string `mapstructure:"maxscale-pass"`
	MxsWritePort                       int    `mapstructure:"maxscale-write-port"`
	MxsReadPort                        int    `mapstructure:"maxscale-read-port"`
	MxsReadWritePort                   int    `mapstructure:"maxscale-read-write-port"`
	MxsMaxinfoPort                     int    `mapstructure:"maxscale-maxinfo-port"`
	MxsBinlogOn                        bool   `mapstructure:"maxscale-binlog"`
	MxsBinlogPort                      int    `mapstructure:"maxscale-binlog-port"`
	MxsDisableMonitor                  bool   `mapstructure:"maxscale-disable-monitor"`
	MxsGetInfoMethod                   string `mapstructure:"maxscale-get-info-method"`
	MxsServerMatchPort                 bool   `mapstructure:"maxscale-server-match-port"`
	HaproxyOn                          bool   `mapstructure:"haproxy"`
	HaproxyHosts                       string `mapstructure:"haproxy-servers"`
	HaproxyWritePort                   int    `mapstructure:"haproxy-write-port"`
	HaproxyReadPort                    int    `mapstructure:"haproxy-read-port"`
	HaproxyStatPort                    int    `mapstructure:"haproxy-stat-port"`
	HaproxyWriteBindIp                 string `mapstructure:"haproxy-ip-write-bind"`
	HaproxyReadBindIp                  string `mapstructure:"haproxy-ip-read-bind"`
	HaproxyBinaryPath                  string `mapstructure:"haproxy-binary-path"`
	ProxysqlOn                         bool   `mapstructure:"proxysql"`
	ProxysqlHosts                      string `mapstructure:"proxysql-servers"`
	ProxysqlPort                       string `mapstructure:"proxysql-port"`
	ProxysqlAdminPort                  string `mapstructure:"proxysql-admin-port"`
	ProxysqlUser                       string `mapstructure:"proxysql-user"`
	ProxysqlPassword                   string `mapstructure:"proxysql-password"`
	ProxysqlWriterHostgroup            string `mapstructure:"proxysql-writer-hostgroup"`
	ProxysqlReaderHostgroup            string `mapstructure:"proxysql-reader-hostgroup"`
	ProxysqlCopyGrants                 bool   `mapstructure:"proxysql-copy-grants"`
	ProxysqlBootstrap                  bool   `mapstructure:"proxysql-bootstrap"`
	MysqlRouterOn                      bool   `mapstructure:"mysqlrouter"`
	MysqlRouterHosts                   string `mapstructure:"mysqlrouter-servers"`
	MysqlRouterPort                    string `mapstructure:"mysqlrouter-port"`
	MysqlRouterUser                    string `mapstructure:"mysqlrouter-user"`
	MysqlRouterPass                    string `mapstructure:"mysqlrouter-pass"`
	MysqlRouterWritePort               int    `mapstructure:"mysqlrouter-write-port"`
	MysqlRouterReadPort                int    `mapstructure:"mysqlrouter-read-port"`
	MysqlRouterReadWritePort           int    `mapstructure:"mysqlrouter-read-write-port"`
	SphinxOn                           bool   `mapstructure:"sphinx"`
	SphinxHosts                        string `mapstructure:"sphinx-servers"`
	SphinxConfig                       string `mapstructure:"sphinx-config"`
	SphinxQLPort                       string `mapstructure:"sphinx-sql-port"`
	SphinxPort                         string `mapstructure:"sphinx-port"`
	RegistryConsul                     bool   `mapstructure:"registry-consul"`
	RegistryHosts                      string `mapstructure:"registry-servers"`
	KeyPath                            string `mapstructure:"keypath"`
	Topology                           string `mapstructure:"topology"` // use by bootstrap
	GraphiteMetrics                    bool   `mapstructure:"graphite-metrics"`
	GraphiteEmbedded                   bool   `mapstructure:"graphite-embedded"`
	GraphiteCarbonHost                 string `mapstructure:"graphite-carbon-host"`
	GraphiteCarbonPort                 int    `mapstructure:"graphite-carbon-port"`
	GraphiteCarbonApiPort              int    `mapstructure:"graphite-carbon-api-port"`
	GraphiteCarbonServerPort           int    `mapstructure:"graphite-carbon-server-port"`
	GraphiteCarbonLinkPort             int    `mapstructure:"graphite-carbon-link-port"`
	GraphiteCarbonPicklePort           int    `mapstructure:"graphite-carbon-pickle-port"`
	GraphiteCarbonPprofPort            int    `mapstructure:"graphite-carbon-pprof-port"`
	SysbenchBinaryPath                 string `mapstructure:"sysbench-binary-path"`
	SysbenchTime                       int    `mapstructure:"sysbench-time"`
	SysbenchThreads                    int    `mapstructure:"sysbench-threads"`
	Arbitration                        bool   `mapstructure:"arbitration-external"`
	ArbitrationSasSecret               string `mapstructure:"arbitration-external-secret"`
	ArbitrationSasHosts                string `mapstructure:"arbitration-external-hosts"`
	ArbitrationSasUniqueId             int    `mapstructure:"arbitration-external-unique-id"`
	ArbitrationPeerHosts               string `mapstructure:"arbitration-peer-hosts"`
	ArbitratorAddress                  string `mapstructure:"arbitrator-bind-address"`
	ArbitratorDriver                   string `mapstructure:"arbitrator-driver"`
	FailForceGtid                      bool   //suspicious code
	Test                               bool   `mapstructure:"test"`
	TestInjectTraffic                  bool   `mapstructure:"test-inject-traffic"`
	Enterprise                         bool   //used to talk to opensvc collector
	ProvHost                           string `mapstructure:"opensvc-host"`
	ProvRegister                       bool   `mapstructure:"opensvc-register"`
	ProvAdminUser                      string `mapstructure:"opensvc-admin-user"`
	ProvUser                           string `mapstructure:"opensvc-user"`
	ProvCodeApp                        string `mapstructure:"opensvc-codeapp"`
	ProvDBServerPath                   string `mapstructure:"prov-db-localhost-binary-path"`
	ProvType                           string `mapstructure:"prov-db-service-type"`
	ProvAgents                         string `mapstructure:"prov-db-agents"`
	ProvMem                            string `mapstructure:"prov-db-memory"`
	ProvIops                           string `mapstructure:"prov-db-disk-iops"`
	ProvCores                          string `mapstructure:"prov-db-cpu-cores"`
	ProvTags                           string `mapstructure:"prov-db-tags"`
	ProvDisk                           string `mapstructure:"prov-db-disk-size"`
	ProvDiskFS                         string `mapstructure:"prov-db-disk-fs"`
	ProvDiskPool                       string `mapstructure:"prov-db-disk-pool"`
	ProvDiskDevice                     string `mapstructure:"prov-db-disk-device"`
	ProvDiskType                       string `mapstructure:"prov-db-disk-type"`
	ProvDiskSnapshot                   bool   `mapstructure:"prov-db-disk-snapshot-prefered-master"`
	ProvDiskSnapshotKeep               int    `mapstructure:"prov-db-disk-snapshot-keep"`
	ProvNetIface                       string `mapstructure:"prov-db-net-iface"`
	ProvNetmask                        string `mapstructure:"prov-db-net-mask"`
	ProvGateway                        string `mapstructure:"prov-db-net-gateway"`
	ProvDbImg                          string `mapstructure:"prov-db-docker-img"`
	ProvDatadirVersion                 string `mapstructure:"prov-db-datadir-version"`
	ProvDBLoadSQL                      string `mapstructure:"prov-db-load-sql"`
	ProvDBLoadCSV                      string `mapstructure:"prov-db-load-csv"`
	ProvProxType                       string `mapstructure:"prov-proxy-service-type"`
	ProvProxAgents                     string `mapstructure:"prov-proxy-agents"`
	ProvProxDisk                       string `mapstructure:"prov-proxy-disk-size"`
	ProvProxDiskFS                     string `mapstructure:"prov-proxy-disk-fs"`
	ProvProxDiskPool                   string `mapstructure:"prov-proxy-disk-pool"`
	ProvProxDiskDevice                 string `mapstructure:"prov-proxy-disk-device"`
	ProvProxDiskType                   string `mapstructure:"prov-proxy-disk-type"`
	ProvProxNetIface                   string `mapstructure:"prov-proxy-net-iface"`
	ProvProxNetmask                    string `mapstructure:"prov-proxy-net-mask"`
	ProvProxGateway                    string `mapstructure:"prov-proxy-net-gateway"`
	ProvProxRouteAddr                  string `mapstructure:"prov-proxy-route-addr"`
	ProvProxRoutePort                  string `mapstructure:"prov-proxy-route-port"`
	ProvProxRouteMask                  string `mapstructure:"prov-proxy-route-mask"`
	ProvProxRoutePolicy                string `mapstructure:"prov-proxy-route-policy"`
	ProvProxShardingImg                string `mapstructure:"prov-proxy-docker-shardproxy-img"`
	ProvProxMaxscaleImg                string `mapstructure:"prov-proxy-docker-maxscale-img"`
	ProvProxHaproxyImg                 string `mapstructure:"prov-proxy-docker-haproxy-img"`
	ProvProxProxysqlImg                string `mapstructure:"prov-proxy-docker-proxysql-img"`
	ProvProxMysqlRouterImg             string `mapstructure:"prov-proxy-docker-mysqlrouter-img"`
	ProvProxTags                       string `mapstructure:"prov-proxy-tags"`
	ProvSphinxAgents                   string `mapstructure:"prov-sphinx-agents"`
	ProvSphinxImg                      string `mapstructure:"prov-sphinx-docker-img"`
	ProvSphinxMem                      string `mapstructure:"prov-sphinx-memory"`
	ProvSphinxDisk                     string `mapstructure:"prov-sphinx-disk-size"`
	ProvSphinxCores                    string `mapstructure:"prov-sphinx-cpu-cores"`
	ProvSphinxMaxChildren              string `mapstructure:"prov-sphinx-max-childrens"`
	ProvSphinxDiskPool                 string `mapstructure:"prov-sphinx-disk-pool"`
	ProvSphinxDiskFS                   string `mapstructure:"prov-sphinx-disk-fs"`
	ProvSphinxDiskDevice               string `mapstructure:"prov-sphinx-disk-device"`
	ProvSphinxDiskType                 string `mapstructure:"prov-sphinx-disk-type"`
	ProvSphinxTags                     string `mapstructure:"prov-sphinx-tags"`
	ProvSphinxCron                     string `mapstructure:"prov-sphinx-reindex-schedule"`
	ProvSphinxType                     string `mapstructure:"prov-sphinx-service-type"`
	ProvSSLCa                          string `mapstructure:"prov-tls-server-ca"`
	ProvSSLCert                        string `mapstructure:"prov-tls-server-cert"`
	ProvSSLKey                         string `mapstructure:"prov-tls-server-key"`
	ProvSSLCaUUID                      string `mapstructure:"prov-tls-server-ca-uuid"`
	ProvSSLCertUUID                    string `mapstructure:"prov-tls-server-cert-uuid"`
	ProvSSLKeyUUID                     string `mapstructure:"prov-tls-server-key-uuid"`
	APIUser                            string `mapstructure:"api-credential"`
	APIPort                            string `mapstructure:"api-port"`
	APIBind                            string `mapstructure:"api-bind"`
	AlertScript                        string `mapstructure:"alert-script"`
	ConfigFile                         string `mapstructure:"config"`
	GoOS                               string `mapstructure:"goos"`
	GoArch                             string `mapstructure:"goarch"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL