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 ¶
func (o *CPUAdvisorOptions) ApplyTo(c *cpu.CPUAdvisorConfiguration) error
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 ¶
func (o *CPUIsolationOptions) ApplyTo(c *cpu.CPUIsolationConfiguration) error
ApplyTo fills up config with options
Click to show internal directories.
Click to hide internal directories.