config

package
v0.21.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationSettings

type ConfigurationSettings struct {
	ListenPort      int
	DataCenter      string
	Environment     string
	Domain          string
	EnableProfiling bool // enable pprof profiling http api
	MySQLStore      MySQLConfigurationSettings
}

ConfigurationSettings models a set of configurable values, that can be provided by the user via one or several JSON formatted files.

Some of the settings have reasonable default values, and some other (like database credentials) are strictly expected from user.

func NewConfigurationSettings added in v0.19.0

func NewConfigurationSettings() *ConfigurationSettings

NewConfigurationSettings creates new throttler configuration settings.

type MySQLConfigurationSettings

type MySQLConfigurationSettings struct {
	CacheMillis         int      // optional, if defined then probe result will be cached, and future probes may use cached value
	Port                int      // Specify if different than 3306; applies to all clusters
	IgnoreDialTCPErrors bool     // Skip hosts where a metric cannot be retrieved due to TCP dial errors
	IgnoreHostsCount    int      // Number of hosts that can be skipped/ignored even on error or on exceeding thresholds
	IgnoreHosts         []string // If non empty, substrings to indicate hosts to be ignored/skipped
}

MySQLConfigurationSettings has the general configuration for all MySQL clusters

Jump to

Keyboard shortcuts

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