mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
fix a little typo in BalancedResourceAllocation
Signed-off-by: Reficul <xuzhenglun@gmail.com>
This commit is contained in:
parent
48f69ac964
commit
e3c5747750
@ -24,7 +24,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
balanceResourcePriority = &ResourceAllocationPriority{"BalanceResourceAllocation", balancedResourceScorer}
|
balancedResourcePriority = &ResourceAllocationPriority{"BalancedResourceAllocation", balancedResourceScorer}
|
||||||
|
|
||||||
// BalancedResourceAllocationMap favors nodes with balanced resource usage rate.
|
// BalancedResourceAllocationMap favors nodes with balanced resource usage rate.
|
||||||
// BalancedResourceAllocationMap should **NOT** be used alone, and **MUST** be used together
|
// BalancedResourceAllocationMap should **NOT** be used alone, and **MUST** be used together
|
||||||
@ -33,7 +33,7 @@ var (
|
|||||||
// Detail: score = 10 - abs(cpuFraction-memoryFraction)*10. The algorithm is partly inspired by:
|
// Detail: score = 10 - abs(cpuFraction-memoryFraction)*10. The algorithm is partly inspired by:
|
||||||
// "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced
|
// "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced
|
||||||
// Resource Utilization"
|
// Resource Utilization"
|
||||||
BalancedResourceAllocationMap = balanceResourcePriority.PriorityMap
|
BalancedResourceAllocationMap = balancedResourcePriority.PriorityMap
|
||||||
)
|
)
|
||||||
|
|
||||||
func balancedResourceScorer(requested, allocable *schedulercache.Resource) int64 {
|
func balancedResourceScorer(requested, allocable *schedulercache.Resource) int64 {
|
||||||
|
Loading…
Reference in New Issue
Block a user