cpu

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUAdvisorOptions

type CPUAdvisorOptions struct {
	CPUProvisionPolicyPriority map[string]string
	CPUHeadroomPolicyPriority  map[string]string
	CPUProvisionAssembler      string
	CPUHeadroomAssembler       string

	*headroom.CPUHeadroomPolicyOptions
	*CPUIsolationOptions
}

CPUAdvisorOptions holds the configurations for cpu advisor in qos aware plugin

func NewCPUAdvisorOptions

func NewCPUAdvisorOptions() *CPUAdvisorOptions

NewCPUAdvisorOptions creates a new Options with a default config

func (*CPUAdvisorOptions) AddFlags

func (o *CPUAdvisorOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to the specified FlagSet.

func (*CPUAdvisorOptions) ApplyTo

ApplyTo fills up config with options

type CPUIsolationOptions

type CPUIsolationOptions 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]string

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

	IsolationDisabled      bool
	IsolationDisabledPools []string
}

func NewCPUIsolationOptions

func NewCPUIsolationOptions() *CPUIsolationOptions

NewCPUIsolationOptions creates a new Options with a default config

func (*CPUIsolationOptions) AddFlags

func (o *CPUIsolationOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to the specified FlagSet.

func (*CPUIsolationOptions) ApplyTo

ApplyTo fills up config with options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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