stp

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

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"
	// CmkEnvShared is the name of the env variable that the original CMK sets
	// 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"
	// PoolInfra is the hardcoded name of the 'infra' pool
	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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL