# Functions
CreateAddPeerOperator creates an operator that adds a new peer.
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.
CreatePromoteLearnerOperator creates an operator that promotes a learner.
CreateRemovePeerOperator creates an operator that removes a peer from region.
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.
IsEndStatus checks whether s is an end status.
NewBuilder creates a Builder.
NewOperator creates a new operator.
NewOpStatusTracker creates an OpStatus.
OpStatusToPDPB converts OpStatus to pdpb.OperatorStatus.
OpStatusToString converts Status to string.
ParseOperatorKind converts string (flag name list concat by ',') to OpKind.
SetOperatorStatusReachTime sets the reach time of the operator.
# Constants
Canceled due to some reason.
Status list Just created.
Didn't start to run for too long.
LeaderOperatorWaitTime is the duration that when a leader operator runs longer than it, the operator will be considered timeout.
Initiated by adjacent region scheduler.
Initiated by admin.
Initiated by balancers.
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 checkers or merge schedulers.
Initiated by range scheduler.
Include peer movement.
Initiated by replica checkers.
Include region split.
RegionOperatorWaitTime is the duration that when a region operator runs longer than it, the operator will be considered timeout.
Replaced by an higher priority operator.
Started and not finished.
Finished successfully.
Running for too long.
# Structs
AddLearner is an OpStep that adds a region learner peer.
AddLightLearner is an OpStep that adds a region learner peer without considering the influence.
AddLightPeer is an OpStep that adds a region peer without considering the influence.
AddPeer is an OpStep that adds a region peer.
Builder is used to create operators.
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.
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.