package
0.3.0
Repository: https://github.com/matrixorigin/matrixcube.git
Documentation: pkg.go.dev

# Functions

CreateAddPeerOperator creates an operator that adds a new peer.
CreateForceTransferLeaderOperator creates an operator that transfers the leader from a source container to a target container forcible.
CreateLeaveJointStateOperator creates an operator that let resource leave joint state.
CreateMergeResourceOperator creates an operator that merge two resource 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.
CreateMoveResourceOperator creates an operator that moves a resource to specified containers.
CreatePromoteLearnerOperator creates an operator that promotes a learner.
CreateRemovePeerOperator creates an operator that removes a peer from resource.
CreateScatterResourceOperator creates an operator that scatters the specified resource.
CreateSplitResourceOperator creates an operator that splits a resource.
CreateTransferLeaderOperator creates an operator that transfers the leader from a source container to a target container.
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 metapb.OperatorStatus.
OpStatusToString converts Status to string.
ParseOperatorKind converts string (flag name list concat by ',') to OpKind.
SetOperatorStatusReachTime sets the reach time of the operator.
SkipOriginJointStateCheck lets the builder skip the joint state check for origin peers.

# Constants

Canceled due to some reason.
Status list Just created.
Didn't start to run for too long.
FastOperatorWaitTime is the duration that when an operator that is not marked `OpResource` runs longer than it, the operator will be considered timeout.
Initiated by admin.
OperatorExpireTime is the duration that when an operator is not started after it, the operator will be considered expired.
Initiated by hot resource scheduler.
Include leader transfer.
Initiated by merge checker or merge scheduler.
Initiated by range scheduler.
Initiated by replica checker.
Include peer addition or removal.
Include resource split.
Replaced by an higher priority operator.
SlowOperatorWaitTime is the duration that when an operator marked `OpResource` runs longer than it, the operator will be considered timeout.
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 resource learner peer.
AddLightLearner is an OpStep that adds a resource learner peer without considering the influence.
AddLightPeer is an OpStep that adds a resource peer without considering the influence.
AddPeer is an OpStep that adds a resource peer.
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.
ContainerInfluence records influences that pending operators will make.
DemoteFollower is an OpStep that demotes a resource follower peer to learner.
DemoteVoter is very similar to DemoteFollower.
DestroyDirectly is an OpStep that destroy current peer directly without raft.
No description provided by the author
MergeResource is an OpStep that merge two resources.
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 resource learner peer to normal voter.
RemovePeer is an OpStep that removes a resource peer.
SplitResource is an OpStep that splits a resource.
TransferLeader is an OpStep that transfers a resource's leader.

# Interfaces

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.