- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for leastRequestedScore (0.29 sec)
-
pkg/scheduler/framework/plugins/noderesources/least_allocated.go
return func(requested, allocable []int64) int64 { var nodeScore, weightSum int64 for i := range requested { if allocable[i] == 0 { continue } weight := resources[i].Weight resourceScore := leastRequestedScore(requested[i], allocable[i]) nodeScore += resourceScore * weight weightSum += weight } if weightSum == 0 { return 0 } return nodeScore / weightSum } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 12 01:50:09 UTC 2023 - 2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/most_allocated.go
// constant with value set to 100). // 0 being the lowest priority and 100 being the highest. // The more resources are used the higher the score is. This function // is almost a reversed version of noderesources.leastRequestedScore. func mostRequestedScore(requested, capacity int64) int64 { if capacity == 0 { return 0 } if requested > capacity { // `requested` might be greater than `capacity` because pods with no
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 21 15:23:47 UTC 2022 - 2.2K bytes - Viewed (0)