package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
GetDispatchPolicy return corresponding policy string.
GetDispatchPolicyByStr return corresponding policy.
GetGlobalTopoFetcher return global topo fetcher, not thread safe.
GetValidDispatchPolicy return all valid policy string.
InitGlobalTopoFetcher init globalTopoFetcher if is in disaggregated-tiflash mode.
IsValidAutoScalerConfig return true if user config of autoscaler type is valid.
NewAWSAutoScalerFetcher create a new AWSTopoFetcher.
NewMockAutoScalerFetcher create a new MockTopoFetcher.
NewTestAutoScalerFetcher returns TestTopoFetcher.
# Constants
AWSASStr is string value for aws AutoScaler.
AWSASType is int value for aws AutoScaler.
DefASStr default AutoScaler.
DefAWSAutoScalerAddr is the default address for AWS AutoScaler.
DispatchPolicyConsistentHash means dispatching by ConsistentHash.
DispatchPolicyConsistentHashStr is string value for DispatchPolicyConsistentHash.
DispatchPolicyInvalid is invalid policy.
DispatchPolicyInvalidStr is string value for DispatchPolicyInvalid.
DispatchPolicyRR means dispatching by RoundRobin.
DispatchPolicyRRStr is string value for DispatchPolicyRR.
GCPASStr is string value for gcp AutoScaler.
GCPASType is int value for gcp AutoScaler.
InvalidASStr is string value for invalid AutoScaler.
InvalidASType is int value for invalid check.
MockASStr is string value for mock AutoScaler.
MockASType is int value for mock AutoScaler.
RecoveryTypeMemLimit means need to recovery MemLimit error.
RecoveryTypeNull means no need to recovery error.
TestASStr is string value for test AutoScaler.
TestASType is for local tidb test AutoScaler.
# Structs
AWSTopoFetcher will fetch topo from AWSAutoScaler.
MockTopoFetcher will fetch topo from MockAutoScaler.
TestTopoFetcher will return empty topo list, just for unit test.
# Interfaces
TopoFetcher is interface for fetching topo from AutoScaler.
# Type aliases
DispatchPolicy means different policy to dispatching task to tiflash_compute nods.
RecoveryType is for MPPErrRecovery.