From e3c5747750da295b8e2a381ea79037af5be1bfa1 Mon Sep 17 00:00:00 2001 From: Reficul Date: Thu, 18 Jan 2018 00:10:21 +0800 Subject: [PATCH] fix a little typo in BalancedResourceAllocation Signed-off-by: Reficul --- .../algorithm/priorities/balanced_resource_allocation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scheduler/algorithm/priorities/balanced_resource_allocation.go b/pkg/scheduler/algorithm/priorities/balanced_resource_allocation.go index 0f3d98f6385..5f070caac13 100644 --- a/pkg/scheduler/algorithm/priorities/balanced_resource_allocation.go +++ b/pkg/scheduler/algorithm/priorities/balanced_resource_allocation.go @@ -24,7 +24,7 @@ import ( ) var ( - balanceResourcePriority = &ResourceAllocationPriority{"BalanceResourceAllocation", balancedResourceScorer} + balancedResourcePriority = &ResourceAllocationPriority{"BalancedResourceAllocation", balancedResourceScorer} // BalancedResourceAllocationMap favors nodes with balanced resource usage rate. // 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: // "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced // Resource Utilization" - BalancedResourceAllocationMap = balanceResourcePriority.PriorityMap + BalancedResourceAllocationMap = balancedResourcePriority.PriorityMap ) func balancedResourceScorer(requested, allocable *schedulercache.Resource) int64 {