cpu

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 4 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

	// IsolatedMaxPoolRatios defines the max ratio for each pool
	// key indicates the pool-name that supports cpu-isolation
	// val indicates the max ratio for this cpu-isolation,
	IsolatedMaxRatios     float32
	IsolatedMaxPoolRatios 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
}

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