Skip to content

Commit

Permalink
Double the anti-affinity for placing same task group on node
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Mar 6, 2017
1 parent fe59878 commit e2ee3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheduler/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2ee3f4

Please sign in to comment.