package
3.1.2
Repository: https://github.com/pingcap/pd.git
Documentation: pkg.go.dev

# Functions

CheckHealth checks if members are healthy.
GetMembers return a slice of Members.
IsCompatible checks if the clusterVersion is compatible with the specified version.
MinSupportedVersion returns the minimum support version for the specified feature.
MustParseVersion wraps ParseVersion and will panic if error is not nil.
NewCPUEntries returns the StateEntries with a fixed size.
NewRaftCluster create a new cluster.
NewState return the LoadState object which collects information from store heartbeats and gives the current state of the cluster.
NewStatEntries returns a statistics object for the cluster.
NewStoreLimiter builds a store limiter object using the operator controller.
ParseVersion wraps semver.NewVersion and handles compatibility issues.

# Constants

Features list.
BatchSplit can speed up the region split.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
NumberOfEntries is the max number of StatEntry that preserved, it is the history of a store's heartbeats.
PluginLoad means action for load plugin.
PluginUnload means action for unload plugin.
RegionMerge supports the adjacent regions to be merged.
StaleEntriesTimeout is the time before an entry is deleted as stale.
Features list.

# Variables

ErrNotBootstrapped is error info for cluster not bootstrapped.
ErrSchedulerExisted is error info for scheduler has already existed.
ErrSchedulerNotFound is error info for scheduler is not found.
ThreadsCollected filters the threads to take into the calculation of CPU usage.

# Structs

CPUEntries saves a history of store statistics.
RaftCluster is used for cluster config management.
State collects information from store heartbeat and caculates the load state of the cluster.
StatEntries saves the StatEntries for each store in the cluster.
Status saves some state information.
StoreLimiter adjust the store limit dynamically.

# Interfaces

Server is the interface for cluster.

# Type aliases

Feature supported features.
LoadState indicates the load of a cluster or store.
StatEntry is an entry of store statistics.