Merge pull request #111287 from ldsdsy/modify1

Update the comment in pkg/scheduler/framework/plugins/noderesources
This commit is contained in:
Kubernetes Prow Robot 2022-07-29 08:35:11 -07:00 committed by GitHub
commit 1865f7cb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ import (
// based on the maximum of the average of the fraction of requested to capacity. // based on the maximum of the average of the fraction of requested to capacity.
// //
// Details: // 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 { func mostResourceScorer(resToWeightMap resourceToWeightMap) func(requested, allocable resourceToValueMap) int64 {
return func(requested, allocable resourceToValueMap) int64 { return func(requested, allocable resourceToValueMap) int64 {
var nodeScore, weightSum int64 var nodeScore, weightSum int64