Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PolicyName is the name used to activate this policy implementation. 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" // CmkEnvInfra is the name of the env variable that the original CMK sets // to communicate all CPUs of the infra pool to the workload. We use the // same environment variable for compatibility. CmkEnvInfra = "CMK_CPUS_INFRA" // to communicate all CPUs of the shared pool to the workload. We use the // same environment variable for compatibility. CmkEnvShared = "CMK_CPUS_SHARED" // 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" // PoolInfra is the hardcoded name of the 'infra' pool CmkPoolInfra = "infra" CmkPoolShared = "shared" )
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.