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

# Functions

DefaultScene returns Scene object with default values.
NewContainerLimit returns a ContainerLimit object.

# Constants

AddPeer indicates the type of container limit that limits the adding peer rate.
EmptyResourceApproximateSize is the resource approximate size of an empty resource (heartbeat size <= 1MB).
RemovePeer indicates the type of container limit that limits the removing peer rate.
SmallResourceThreshold is used to represent a resource which can be regarded as a small resource once the size is small than it.
Unlimited is used to control the container limit.

# Variables

ResourceInfluence represents the influence of a operator step, which is used by container limit.
SmallResourceInfluence represents the influence of a operator step when the resource size is smaller than smallResourceThreshold, which is used by container limit.
TypeNameValue indicates the name of container limit type and the enum value.

# Structs

ContainerLimit limits the operators of a container.
Scene defines the container limitation on difference scenes Idle/Low/Normal/High indicates the load of the cluster, it is defined in cluster.State.

# Type aliases

Type indicates the type of container limit.