package
6.7.0-alpha+incompatible
Repository: https://github.com/tikv/pd.git
Documentation: pkg.go.dev

# Functions

CreateAddPeerOperator creates an operator that adds a new peer.
CreateDemoteVoterOperator creates an operator that demotes a voter.
CreateForceTransferLeaderOperator creates an operator that transfers the leader from a source store to a target store forcible.
CreateLeaveJointStateOperator creates an operator that let region leave joint state.
CreateMergeRegionOperator creates an operator that merge two region into one.
CreateMoveLeaderOperator creates an operator that replaces an old leader with a new leader.
CreateMovePeerOperator creates an operator that replaces an old peer with a new peer.
CreateMoveRegionOperator creates an operator that moves a region to specified stores.
CreateMoveWitnessOperator creates an operator that replaces an old witness with a new witness.
CreateNonWitnessPeerOperator creates an operator that set a peer with non-witness.
CreatePromoteLearnerOperator creates an operator that promotes a learner.
CreateRemovePeerOperator creates an operator that removes a peer from region.
CreateReplaceLeaderPeerOperator creates an operator that replaces an old peer with a new peer, and move leader from old store firstly.
CreateScatterRegionOperator creates an operator that scatters the specified region.
CreateSplitRegionOperator creates an operator that splits a region.
CreateTransferLeaderOperator creates an operator that transfers the leader from a source store to a target store.
CreateWitnessPeerOperator creates an operator that set a follower or learner peer with witness.
IsEndStatus checks whether s is an end status.
NewBuilder creates a Builder.
NewOperator creates a new operator.
NewOpStatusTracker creates an OpStatus.
NewTestOperator creates a test operator, only used for unit test.
OpStatusToPDPB converts OpStatus to pdpb.OperatorStatus.
OpStatusToString converts Status to string.
ParseOperatorKind converts string (flag name list concat by ',') to OpKind.
SkipOriginJointStateCheck lets the builder skip the joint state check for origin peers.
SkipPlacementRulesCheck lets the builder skip the placement rules check for origin and target peers.

# Constants

Canceled due to some reason.
Status list Just created.
DefaultFastExecutorRate is the slow rate of the step executor.
DefaultSlowExecutorRate is the fast rate of the step executor.
Didn't start to run for too long.
FastStepWaitTime is the duration that the OpStep may take.
Initiated by admin.
OpDescLeaveJointState is the expected desc for LeaveJointStateOperator.
OperatorExpireTime is the duration that when an operator is not started after it, the operator will be considered expired.
Initiated by hot region scheduler.
Include leader transfer.
Initiated by merge checker or merge scheduler.
Initiated by range scheduler.
Include peer addition or removal or switch witness.
Initiated by replica checker.
Include region split.
Include witness transfer.
Include witness leader transfer.
Replaced by an higher priority operator.
SlowStepWaitTime is the duration that the OpStep may take.
Started and not finished.
Finished successfully.
Running for too long.

# Variables

OperatorLimitCounter exposes the counter when meeting limit.

# Structs

AddLearner is an OpStep that adds a region learner peer.
AddPeer is an OpStep that adds a region peer.
BatchSwitchWitness is an OpStep that batch switch witness.
BecomeNonWitness is an OpStep that makes a peer become a non-witness.
BecomeWitness is an OpStep that makes a peer become a witness.
Builder is used to create operators.
ChangePeerV2Enter is an OpStep that uses joint consensus to request all PromoteLearner and DemoteVoter.
ChangePeerV2Leave is an OpStep that leaves the joint state.
DemoteVoter is very similar to DemoteFollower.
MergeRegion is an OpStep that merge two regions.
Operator contains execution steps generated by scheduler.
OpHistory is used to log and visualize completed operators.
OpInfluence records the influence of the cluster.
OpRecord is used to log and visualize completed operators.
OpStatusTracker represents the status of an operator.
PromoteLearner is an OpStep that promotes a region learner peer to normal voter.
RemovePeer is an OpStep that removes a region peer.
SplitRegion is an OpStep that splits a region.
StoreInfluence records influences that pending operators will make.
TransferLeader is an OpStep that transfers a region's leader.

# Interfaces

ClusterInformer provides the necessary information for building operator.
OpStep describes the basic scheduling steps that can not be subdivided.

# Type aliases

BuilderOption is used to create operator builder.
OpKind is a bit field to identify operator types.
OpStatus represents the status of an Operator.