Skip to content

Commit e1d61b6

Browse files
committed
Scheduler: remove the misleading comments in NodeResourcesBalancedAllocation
Signed-off-by: Dave Chen [email protected]
1 parent ad63459 commit e1d61b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/scheduler/framework/plugins/noderesources/balanced_allocation.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ func (ba *BalancedAllocation) Score(ctx context.Context, state *framework.CycleS
5353
}
5454

5555
// ba.score favors nodes with balanced resource usage rate.
56-
// It should **NOT** be used alone, and **MUST** be used together
57-
// with NodeResourcesLeastAllocated plugin. It calculates the difference between the cpu and memory fraction
58-
// of capacity, and prioritizes the host based on how close the two metrics are to each other.
56+
// It calculates the difference between the cpu and memory fraction of capacity,
57+
// and prioritizes the host based on how close the two metrics are to each other.
5958
// Detail: score = (1 - variance(cpuFraction,memoryFraction,volumeFraction)) * MaxNodeScore. The algorithm is partly inspired by:
6059
// "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced
6160
// Resource Utilization"

0 commit comments

Comments
 (0)