# Packages
No description provided by the author
No description provided by the author
Package core defines core characteristics of the server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
CheckPDVersion checks if PD needs to be upgraded.
CreateServer creates the UNINITIALIZED pd server with given configuration.
GetMembers return a slice of Members.
InitHTTPClient initials a http client.
IsCompatible checks if the clusterVersion is compatible with the specified version.
IsDefaultScheduler checks whether the scheduler is enable by default.
LogPDInfo prints the PD version information.
MinSupportedVersion returns the minimum support version for the specified feature.
MustParseVersion wraps ParseVersion and will panic if error is not nil.
NewConfig creates a new config.
NewOperatorRecords returns a OperatorRecords.
NewTestMultiConfig is only for test to create multiple pd configurations.
NewTestServer creates a pd server for testing.
NewTestSingleConfig is only for test to create one pd.
ParseUrls parse a string into multiple urls.
ParseVersion wraps semver.NewVersion and handles compatibility issues.
PrepareJoinCluster sends MemberAdd command to PD cluster, and returns the initial configuration of the PD cluster.
PrintConfigCheckMsg prints the message about configuration checks.
PrintPDInfo prints the PD version information without log info.
StartMonitor calls systimeErrHandler if system time jump backward.
ValidateLabels checks the legality of the labels.
ValidateLabelString checks the legality of the label string.
# Constants
Fetures list.
BatchSplit can speed up the region split.
The source of dispatched region.
The source of dispatched region.
The source of dispatched region.
PushOperatorTickInterval is the interval try to push the operator.
RaftLearner supports add a non-voting member in raft members.
RegionMerge supports the adjacent regions to be merged.
Fetures list.
# Variables
EnableZap enable the zap logger in embed etcd.
ErrAddOperator is error info for already have an operator when adding operator.
ErrNotBootstrapped is error info for cluster not bootstrapped.
ErrOperatorNotFound is error info for operator not found.
ErrRegionAbnormalPeer is error info for region has abonormal peer.
ErrRegionIsStale is error info for region is stale.
ErrRegionNotAdjacent is error info for region not adjacent.
ErrRegionNotFound is error info for region not found.
Version information.
Version information.
Version information.
Version information.
# Structs
ClusterStatus saves some state information.
Config is the pd server configuration.
Handler is a helper to export methods to handle API/RPC requests.
NamespaceConfig is to overwrite the global setting for specific namespace.
OperatorRecords remains the operator and its status for a while.
OperatorWithStatus records the operator and its status.
RaftCluster is used for cluster config management.
Replication provides some help to do replication.
ReplicationConfig is the replication configuration.
ScheduleConfig is the schedule configuration.
SchedulerConfig is customized scheduler configuration.
SecurityConfig is the configuration for supporting tls.
Server is the pd server.
StoreLabel is the config item of LabelPropertyConfig.
# Type aliases
CleanupFunc closes test pd server(s) and deletes any files left behind.
Feature supported features.
LabelPropertyConfig is the config section to set properties to store labels.
SchedulerConfigs is a slice of customized scheduler configuration.