mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Update the comment in pkg/scheduler/framework/plugins/noderesources/most_allocated.go
This commit is contained in:
parent
b96a04df90
commit
cc46cb002a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user