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 *provision.CPUProvisionPolicyOptions *region.CPURegionOptions *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 ¶ added in v0.2.0
type CPUIsolationOptions struct { // IsolationCPURatio and IsolationCPUSize defines the threshold to trigger isolation IsolationCPURatio float32 IsolationCPUSize int32 // IsolatedMaxPoolResourceRatios 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, IsolatedMaxResourceRatio float32 IsolatedMaxPoolResourceRatios map[string]string // 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]string // IsolationLockInThreshold and IsolationLockOutPeriodSecs defines the lasting periods // before state switches between lock-in and lock-out IsolationLockInThreshold int IsolationLockOutPeriodSecs int // IsolationDisabled is used to disable all isolation. // IsolationDisabledPools indicates the pools where pods will not be isolated. // IsolationForceEnablePools indicates the pools where pods must be isolated, even if the pool // is listed in IsolationDisabledPools. // IsolationNonExclusivePools indicates the pools where pods will not be exclusively isolated. IsolationDisabled bool IsolationDisabledPools []string IsolationForceEnablePools []string IsolationNonExclusivePools []string }
func NewCPUIsolationOptions ¶ added in v0.2.0
func NewCPUIsolationOptions() *CPUIsolationOptions
NewCPUIsolationOptions creates a new Options with a default config
func (*CPUIsolationOptions) AddFlags ¶ added in v0.2.0
func (o *CPUIsolationOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*CPUIsolationOptions) ApplyTo ¶ added in v0.2.0
func (o *CPUIsolationOptions) ApplyTo(c *cpu.CPUIsolationConfiguration) error
ApplyTo fills up config with options
Click to show internal directories.
Click to hide internal directories.