Skip to content

Commit

Permalink
koordlet: fix wrong msg in calculateBESuppressCPU (koordinator-sh#2193)
Browse files Browse the repository at this point in the history
Signed-off-by: yangfeiyu20102011 <[email protected]>
  • Loading branch information
yangfeiyu20102011 authored Sep 4, 2024
1 parent 65ea85e commit 36cb609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/koordlet/qosmanager/plugins/cpusuppress/cpu_suppress.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func (r *CPUSuppress) calculateBESuppressCPU(node *corev1.Node, nodeMetric float
nodeBESuppress.Sub(*systemUsed)

metrics.RecordBESuppressLSUsedCPU(podNonBEUsedCPU)
klog.V(6).Infof("nodeSuppressBE[CPU(Core)]:%v = node.Total:%v * SLOPercent:%v%% - systemUsage:%v - podLSUsed:%v - hostAppLSUsed:%v, upper to %v\n",
nodeBESuppress.AsApproximateFloat64(), node.Status.Allocatable.Cpu().Value(), beCPUUsedThreshold, systemUsedCPU,
klog.V(6).Infof("nodeSuppressBE[CPU(Core)]:%v = node.Capacity:%v * SLOPercent:%v%% - systemUsage:%v - podLSUsed:%v - hostAppLSUsed:%v, upper to %v\n",
nodeBESuppress.AsApproximateFloat64(), node.Status.Capacity.Cpu().Value(), beCPUUsedThreshold, systemUsedCPU,
podNonBEUsedCPU, hostAppNonBEUsedCPU, nodeBESuppress.Value())

return nodeBESuppress
Expand Down

0 comments on commit 36cb609

Please sign in to comment.