throttlerapp

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concatenate added in v0.18.0

func Concatenate(names ...string) string

func ExemptFromChecks

func ExemptFromChecks(appName string) bool

ExemptFromChecks returns 'true' for apps that should skip the throttler checks. The throttler should always respond with automated "OK" to those apps, without delay. These apps also do not cause a heartbeat renewal.

Types

type Name

type Name string
const (
	// AllName is a special catch-all name for all apps
	AllName Name = "all"
	// VitessName is used by vitess tablets when communicating between themselves,
	// as well as for self checks.
	// It is also the name used by checks that do not identify by any app name.
	VitessName Name = "vitess"
	// ThrottlerStimulatorName is used by a replica tablet to stimulate the throttler on the Primary tablet
	ThrottlerStimulatorName Name = "throttler-stimulator"

	TableGCName   Name = "tablegc"
	OnlineDDLName Name = "online-ddl"
	GhostName     Name = "gh-ost"
	PTOSCName     Name = "pt-osc"

	VReplicationName      Name = "vreplication"
	VStreamerName         Name = "vstreamer"
	VPlayerName           Name = "vplayer"
	VCopierName           Name = "vcopier"
	ResultStreamerName    Name = "resultstreamer"
	RowStreamerName       Name = "rowstreamer"
	ExternalConnectorName Name = "external-connector"
	ReplicaConnectorName  Name = "replica-connector"

	BinlogWatcherName Name = "binlog-watcher"
	MessagerName      Name = "messager"
	SchemaTrackerName Name = "schema-tracker"

	TestingName                Name = "test"
	TestingAlwaysThrottlerName Name = "always-throttled-app"
)

func (Name) Concatenate added in v0.18.0

func (n Name) Concatenate(other Name) Name

func (Name) ConcatenateString added in v0.18.0

func (n Name) ConcatenateString(s string) string

func (Name) Equals

func (n Name) Equals(s string) bool

func (Name) SplitStrings added in v0.21.0

func (n Name) SplitStrings() []string

func (Name) String

func (n Name) String() string

Jump to

Keyboard shortcuts

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