package
0.3.1
Repository: https://github.com/markkuleppala/cpu-pooler.git
Documentation: pkg.go.dev

# Functions

DeterminePoolConfig first interrogates the label set of the Node this process runs on.It uses this information to select the specific PoolConfig file corresponding to the Node.Returns the selected PoolConfig file, the name of the file, or an error if it was impossible to determine which config file is applicable.
DeterminePoolType takes the name of CPU pool as defined in the CPU-Pooler ConfigMap, and returns the type of CPU pool it represents.Type of the pool is determined based on the constant prefixes used in the name of the pool.A type can be shared, exclusive, or default.
NewCPUAnnotation returns a new CPUAnnotation.
ReadPoolConfigFile reads a pool configuration file.

# Constants

DefaultPoolID is the constant prefix in the name of the CPU pool.
ExclusivePoolID is the constant prefix in the name of the CPU pool.
SharedPoolID is the constant prefix in the name of the CPU pool.

# Variables

PoolConfigDir defines the pool configuration file location.

# Structs

Container idenfifies container and defines the processes to be started.
Pool defines cpupool.
PoolConfig defines pool configuration for a node.
Process defines process information in pod annotation The information is used for setting CPU affinity.

# Type aliases

CPUAnnotation defines the pod cpu annotation structure.