cpu

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUAdvisorConfiguration

CPUAdvisorConfiguration stores configurations of cpu advisors in qos aware plugin

func NewCPUAdvisorConfiguration

func NewCPUAdvisorConfiguration() *CPUAdvisorConfiguration

NewCPUAdvisorConfiguration creates new cpu advisor configurations

type CPUIsolationConfiguration added in v0.2.0

type CPUIsolationConfiguration struct {
	// IsolationCPURatio and IsolationCPUSize defines the threshold to trigger isolation
	IsolationCPURatio float32
	IsolationCPUSize  int32

	// IsolatedMaxPoolResourceRatios defines the max resource-ratio for each pool
	// key indicates the pool-name that supports cpu-isolation
	// val indicates the max ratio for this cpu-isolation,
	IsolatedMaxResourceRatio      float32
	IsolatedMaxPoolResourceRatios map[string]float32

	// IsolatedMaxPoolPodRatios defines the max pod-amount-ratio for each pool
	// key indicates the pool-name that supports cpu-isolation
	// val indicates the max ratio for this cpu-isolation,
	IsolatedMaxPodRatio      float32
	IsolatedMaxPoolPodRatios map[string]float32

	// IsolationLockInThreshold and IsolationLockOutPeriodSecs defines the lasting periods
	// before state switches between lock-in and lock-out
	IsolationLockInThreshold   int
	IsolationLockOutPeriodSecs int

	IsolationDisabled          bool
	IsolationDisabledPools     sets.String
	IsolationForceEnablePools  sets.String
	IsolationNonExclusivePools sets.String
}

CPUIsolationConfiguration stores configurations of cpu isolation

func NewCPUIsolationConfiguration added in v0.2.0

func NewCPUIsolationConfiguration() *CPUIsolationConfiguration

NewCPUIsolationConfiguration creates new resource advisor configurations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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