From ea7f711ae2863c66072e508f644ff00733a2279e Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Tue, 7 Aug 2018 15:37:55 -0400 Subject: [PATCH] Fix incorrect reporting of total request including current pod in the resource allocation priority function. --- pkg/scheduler/algorithm/priorities/resource_allocation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/algorithm/priorities/resource_allocation.go b/pkg/scheduler/algorithm/priorities/resource_allocation.go index a3e329df04..bf4ed038ba 100644 --- a/pkg/scheduler/algorithm/priorities/resource_allocation.go +++ b/pkg/scheduler/algorithm/priorities/resource_allocation.go @@ -67,7 +67,7 @@ func (r *ResourceAllocationPriority) PriorityMap( "%v -> %v: %v, capacity %d millicores %d memory bytes, total request %d millicores %d memory bytes, score %d", pod.Name, node.Name, r.Name, allocatable.MilliCPU, allocatable.Memory, - requested.MilliCPU+allocatable.MilliCPU, requested.Memory+allocatable.Memory, + requested.MilliCPU, requested.Memory, score, ) }