Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUAdvisorConfiguration ¶
type CPUAdvisorConfiguration struct { ProvisionPolicies map[v1alpha1.QoSRegionType][]types.CPUProvisionPolicyName HeadroomPolicies map[v1alpha1.QoSRegionType][]types.CPUHeadroomPolicyName ProvisionAssembler types.CPUProvisionAssemblerName HeadroomAssembler types.CPUHeadroomAssemblerName *headroom.CPUHeadroomPolicyConfiguration *provision.CPUProvisionPolicyConfiguration *region.CPURegionConfiguration *CPUIsolationConfiguration }
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 // IsolatedMaxPoolResourceRatios defines the max resource-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]float32 // 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]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 IsolationForceEnablePools sets.String IsolationNonExclusivePools sets.String }
CPUIsolationConfiguration stores configurations of cpu isolation
func NewCPUIsolationConfiguration ¶ added in v0.2.0
func NewCPUIsolationConfiguration() *CPUIsolationConfiguration
NewCPUIsolationConfiguration creates new resource advisor configurations
Click to show internal directories.
Click to hide internal directories.