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

# Packages

No description provided by the author
No description provided by the author
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

ApplyOperator applies operator.
ApplyOperatorStep applies operator step.
ConfigJSONDecoder used to build a json decoder of the config.
ConfigSliceDecoder the default decode for the config.
CreateScheduler creates a scheduler with registered creator func.
DecodeConfig decode the custom config for each scheduler.
EncodeConfig encode the custom config for each scheduler.
FindSchedulerTypeByName finds the type of the specified name.
GenRangeCluster gets a range cluster by specifying start key and end key.
NewCheckerController create a new CheckerController.
NewOperatorController creates a OperatorController.
NewOperatorRecords returns a OperatorRecords.
NewOperatorWithStatus creates an OperatorStatus from an operator.
NewPluginInterface create a plugin interface.
NewRandBuckets creates a random buckets.
NewResourceScatterer creates a resource scatterer.
NewResourceSplitter return a resource splitter.
NewSplitResourcesHandler return SplitResourcesHandler.
NewTotalOpInfluence creates a OpInfluence.
NewWaitingOperatorStatus creates a new WaitingOperatorStatus.
RegisterScheduler binds a scheduler creator.
RegisterSliceDecoderBuilder convert arguments to config.

# Constants

DefaultCacheSize is the default length of waiting list.
The source of dispatched resource.
The source of dispatched resource.
The source of dispatched resource.

# Variables

ContainerBalanceBaseTime represents the base time of balance rate.
PriorityWeight is used to represent the weight of different priorities of operators.
PushOperatorTickInterval is the interval try to push the operator.

# Structs

Bucket is used to maintain the operators created by a specific scheduler.
CheckerController is used to manage all checkers.
OperatorController is used to limit the speed of scheduling.
OperatorRecords remains the operator and its status for a while.
OperatorWithStatus records the operator and its status.
PluginInterface is used to manage all plugin.
RandBuckets is an implementation of waiting operators.
RangeCluster isolates the cluster by range.
ResourceScatterer scatters resources.
ResourceSplitter handles split resources.
WaitingOperatorStatus is used to limit the count of each kind of operators.

# Interfaces

Scheduler is an interface to schedule resources.
SplitResourcesHandler used to handle resource splitting.
WaitingOperator is an interface of waiting operators.

# Type aliases

ConfigDecoder used to decode the config.
ConfigSliceDecoderBuilder used to build slice decoder of the config.
CreateSchedulerFunc is for creating scheduler.