# Functions
NewContainerLimiter builds a container limiter object using the operator controller.
NewCPUEntries returns the StateEntries with a fixed size.
NewRaftCluster create a new cluster.
NewState return the LoadState object which collects information from container heartbeats and gives the current state of the cluster.
NewStatEntries returns a statistics object for the cluster.
# Constants
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
LoadStates that supported, None means no state determined.
NumberOfEntries is the max number of StatEntry that preserved, it is the history of a container's heartbeats.
StaleEntriesTimeout is the time before an entry is deleted as stale.
# Variables
ThreadsCollected filters the threads to take into the calculation of CPU usage.
# Structs
ContainerLimiter adjust the container limit dynamically.
CPUEntries saves a history of container statistics.
RaftCluster is used for cluster config management.
State collects information from container heartbeat and calculates the load state of the cluster.
StatEntries saves the StatEntries for each container in the cluster.
# Interfaces
Server is the interface for cluster.