advisor

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 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 AdvisorOptions

type AdvisorOptions struct {
	*MemoryGuardOptions
	*CPUProvisionOptions
}

func NewAdvisorOptions

func NewAdvisorOptions() *AdvisorOptions

func (*AdvisorOptions) AddFlags

func (o *AdvisorOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*AdvisorOptions) ApplyTo

type CPUProvisionOptions added in v0.5.5

type CPUProvisionOptions struct {
	AllowSharedCoresOverlapReclaimedCores bool
	RegionIndicatorTargetOptions          map[string]string
	ControlKnobConstrains                 *ControlKnobConstrains
}

func NewCPUProvisionOptions added in v0.5.5

func NewCPUProvisionOptions() *CPUProvisionOptions

func (*CPUProvisionOptions) AddFlags added in v0.5.5

func (o *CPUProvisionOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*CPUProvisionOptions) ApplyTo added in v0.5.5

ApplyTo fills up config with options

type ControlKnobConstrains added in v0.5.5

type ControlKnobConstrains struct {
	RestrictControlKnobMaxUpperGap      map[string]string
	RestrictControlKnobMaxLowerGap      map[string]string
	RestrictControlKnobMaxUpperGapRatio map[string]string
	RestrictControlKnobMaxLowerGapRatio map[string]string
}

func NewControlKnobConstrains added in v0.5.5

func NewControlKnobConstrains() *ControlKnobConstrains

func (*ControlKnobConstrains) AddFlags added in v0.5.5

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

func (*ControlKnobConstrains) ApplyTo added in v0.5.5

type MemoryGuardOptions

type MemoryGuardOptions struct {
	Enable bool
}

func NewMemoryGuardOptions

func NewMemoryGuardOptions() *MemoryGuardOptions

func (*MemoryGuardOptions) AddFlags

func (o *MemoryGuardOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags parses the flags to MemoryGuardOptions

func (*MemoryGuardOptions) ApplyTo

Jump to

Keyboard shortcuts

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