mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-27 05:46:13 +01:00
chore: log average and assessed thresholds
when calculating the average an applying the deviations it would be nice to also see the assessed values. this commit makes the descheduler logs these values when using level 3.
This commit is contained in:
@@ -74,13 +74,6 @@ func NewHighNodeUtilization(
|
||||
highThresholds[rname] = MaxResourcePercentage
|
||||
}
|
||||
|
||||
// criteria is a list of thresholds that are used to determine if a node
|
||||
// is underutilized. it is used only for logging purposes.
|
||||
criteria := []any{}
|
||||
for rname, rvalue := range args.Thresholds {
|
||||
criteria = append(criteria, rname, rvalue)
|
||||
}
|
||||
|
||||
podFilter, err := podutil.
|
||||
NewOptions().
|
||||
WithFilter(handle.Evictor().Filter).
|
||||
@@ -106,7 +99,7 @@ func NewHighNodeUtilization(
|
||||
args: args,
|
||||
resourceNames: resourceNames,
|
||||
highThresholds: highThresholds,
|
||||
criteria: criteria,
|
||||
criteria: thresholdsToKeysAndValues(args.Thresholds),
|
||||
podFilter: podFilter,
|
||||
usageClient: newRequestedUsageClient(
|
||||
resourceNames,
|
||||
|
||||
Reference in New Issue
Block a user