stp

package
v0.2.1-0...-d3ae3b1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

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