Skip to content

Commit

Permalink
YARN-3849. Too much of preemption activity causing continuos killing …
Browse files Browse the repository at this point in the history
…of containers across queues. (Sunil G via wangda)
  • Loading branch information
wangdatan committed Nov 21, 2015
1 parent 9074714 commit 2ad1386
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 58 deletions.
3 changes: 3 additions & 0 deletions hadoop-yarn-project/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Release 2.7.3 - UNRELEASED
YARN-4374. RM capacity scheduler UI rounds user limit factor (Chang Li via
jlowe)

YARN-3849. Too much of preemption activity causing continuos killing of containers
across queues. (Sunil G via wangda)

Release 2.7.2 - UNRELEASED

INCOMPATIBLE CHANGES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,12 +742,11 @@ private TempQueue cloneQueues(CSQueue root, Resource clusterResources) {
TempQueue ret;
synchronized (root) {
String queueName = root.getQueueName();
float absUsed = root.getAbsoluteUsedCapacity();
float absCap = root.getAbsoluteCapacity();
float absMaxCap = root.getAbsoluteMaximumCapacity();
boolean preemptionDisabled = root.getPreemptionDisabled();

Resource current = Resources.multiply(clusterResources, absUsed);
Resource current = root.getQueueResourceUsage().getUsed();
Resource guaranteed = Resources.multiply(clusterResources, absCap);
Resource maxCapacity = Resources.multiply(clusterResources, absMaxCap);

Expand Down
Loading

0 comments on commit 2ad1386

Please sign in to comment.