From cc46cb002a2c214480be0cfe3c1c06861b36150b Mon Sep 17 00:00:00 2001 From: ldsdsy Date: Wed, 20 Jul 2022 17:55:14 +0800 Subject: [PATCH] Update the comment in pkg/scheduler/framework/plugins/noderesources/most_allocated.go --- pkg/scheduler/framework/plugins/noderesources/most_allocated.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/plugins/noderesources/most_allocated.go b/pkg/scheduler/framework/plugins/noderesources/most_allocated.go index f32925ed24b..94c55cbe325 100644 --- a/pkg/scheduler/framework/plugins/noderesources/most_allocated.go +++ b/pkg/scheduler/framework/plugins/noderesources/most_allocated.go @@ -25,7 +25,7 @@ import ( // based on the maximum of the average of the fraction of requested to capacity. // // Details: -// (cpu(MaxNodeScore * sum(requested) / capacity) + memory(MaxNodeScore * sum(requested) / capacity)) / weightSum +// (cpu(MaxNodeScore * requested * cpuWeight / capacity) + memory(MaxNodeScore * requested * memoryWeight / capacity) + ...) / weightSum func mostResourceScorer(resToWeightMap resourceToWeightMap) func(requested, allocable resourceToValueMap) int64 { return func(requested, allocable resourceToValueMap) int64 { var nodeScore, weightSum int64