Scheduler: remove the misleading comments in NodeResourcesBalancedAllocation

Signed-off-by: Dave Chen dave.chen@arm.com
This commit is contained in:
Dave Chen 2020-06-23 17:22:39 +08:00
parent ad634590f8
commit e1d61b621a

View File

@ -53,9 +53,8 @@ func (ba *BalancedAllocation) Score(ctx context.Context, state *framework.CycleS
}
// ba.score favors nodes with balanced resource usage rate.
// It should **NOT** be used alone, and **MUST** be used together
// with NodeResourcesLeastAllocated plugin. It calculates the difference between the cpu and memory fraction
// of capacity, and prioritizes the host based on how close the two metrics are to each other.
// It calculates the difference between the cpu and memory fraction of capacity,
// and prioritizes the host based on how close the two metrics are to each other.
// Detail: score = (1 - variance(cpuFraction,memoryFraction,volumeFraction)) * MaxNodeScore. The algorithm is partly inspired by:
// "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced
// Resource Utilization"