Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PolicyName is the symbol used to pull us in as a builtin policy. PolicyName = "static-pools" // PolicyDescription is a short description of this policy. PolicyDescription = "A reimplementation of CMK (CPU Manager for Kubernetes)." // PolicyPath is the path of this policy in the configuration hierarchy. PolicyPath = "policy." + PolicyName // StpEnvPool is the name of the env variable for selecting STP pool of a container StpEnvPool = "STP_POOL" // StpEnvSocketID is the name of the env variable for selecting cpu socket of a container StpEnvSocketID = "STP_SOCKET_ID" // StpEnvNoAffinity is the name of the env variable for switching off cpuset enforcement StpEnvNoAffinity = "STP_NO_AFFINITY" // CmkEnvAssigned is the name of the env variable that the original CMK // sets to communicate the selected cpuset to the workload. We use the same // environment variable for compatibility. CmkEnvAssigned = "CMK_CPUS_ASSIGNED" // CmkEnvNumCores is the name of the env used in the original CMK to select // the number of exclusive CPUs, deprecated here CmkEnvNumCores = "CMK_NUM_CORES" )
Variables ¶
This section is empty.
Functions ¶
func CreateStpPolicy ¶
func CreateStpPolicy(opts *policy.BackendOptions) policy.Backend
CreateStpPolicy creates a new policy instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.