From e2ee3f490431ad5ed41d14e7ab14f0b3d3d65819 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 6 Mar 2017 11:52:53 -0800 Subject: [PATCH] Double the anti-affinity for placing same task group on node --- scheduler/stack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler/stack.go b/scheduler/stack.go index fa76cbe21..d685be1c7 100644 --- a/scheduler/stack.go +++ b/scheduler/stack.go @@ -11,11 +11,11 @@ const ( // serviceJobAntiAffinityPenalty is the penalty applied // to the score for placing an alloc on a node that // already has an alloc for this job. - serviceJobAntiAffinityPenalty = 10.0 + serviceJobAntiAffinityPenalty = 20.0 // batchJobAntiAffinityPenalty is the same as the // serviceJobAntiAffinityPenalty but for batch type jobs. - batchJobAntiAffinityPenalty = 5.0 + batchJobAntiAffinityPenalty = 10.0 ) // Stack is a chained collection of iterators. The stack is used to