Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(qrm): add LoadLowerBoundRatio for CPUPressureEvictionConfig #89

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ spec:
is triggered, the cpu load eviction will be disabled
for the cool-down time
type: string
loadLowerBoundRatio:
description: LoadLowerBoundRatio is the lower bound ratio
of cpuset pool load, if the load of the target cpuset
pool is greater than the load lower bound repeatedly,
the node taint will be triggered
minimum: 0
type: number
loadMetricRingSize:
description: LoadMetricRingSize is the size of the load
metric ring, which is used to calculate the load of
Expand Down
7 changes: 7 additions & 0 deletions pkg/apis/config/v1alpha1/adminqos.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ type CPUPressureEvictionConfig struct {
// +optional
LoadUpperBoundRatio *float64 `json:"loadUpperBoundRatio,omitempty"`

// LoadLowerBoundRatio is the lower bound ratio of cpuset pool load, if the load
// of the target cpuset pool is greater than the load lower bound repeatedly, the
// node taint will be triggered
// +kubebuilder:validation:Minimum=0
// +optional
LoadLowerBoundRatio *float64 `json:"loadLowerBoundRatio,omitempty"`

// LoadThresholdMetPercentage is the percentage of the number of times the load
// over the upper bound to the total number of times the load is measured, if the
// percentage is greater than the load threshold met percentage, the eviction or
Expand Down
Loading