From f3592dc8f49d11d6c4353df9d6f4c9cadb3ed06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=81=A5=E4=BF=9E?= Date: Fri, 10 May 2024 15:10:41 +0800 Subject: [PATCH] feat(qrm): add LoadLowerBoundRatio for CPUPressureEvictionConfig --- ...onfig.katalyst.kubewharf.io_adminqosconfigurations.yaml | 7 +++++++ pkg/apis/config/v1alpha1/adminqos.go | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/config/crd/bases/config.katalyst.kubewharf.io_adminqosconfigurations.yaml b/config/crd/bases/config.katalyst.kubewharf.io_adminqosconfigurations.yaml index ccce31f..15927af 100644 --- a/config/crd/bases/config.katalyst.kubewharf.io_adminqosconfigurations.yaml +++ b/config/crd/bases/config.katalyst.kubewharf.io_adminqosconfigurations.yaml @@ -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 diff --git a/pkg/apis/config/v1alpha1/adminqos.go b/pkg/apis/config/v1alpha1/adminqos.go index 7e1a408..c5ce884 100644 --- a/pkg/apis/config/v1alpha1/adminqos.go +++ b/pkg/apis/config/v1alpha1/adminqos.go @@ -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