Skip to content

Commit

Permalink
YARN-11752: Global Scheduler: Improve the container allocation time (a…
Browse files Browse the repository at this point in the history
…pache#7277) Contributed by Syed Shameerur Rahman.

Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
shameersss1 authored Jan 12, 2025
1 parent d2095fa commit c24d569
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,10 @@ static void schedule(CapacityScheduler cs) throws InterruptedException{
if (candidates == null) {
continue;
}
cs.allocateContainersToNode(candidates, false);
int nodesPerPartitionCount = candidates.getAllNodes().size();
for (int i = 0; i < nodesPerPartitionCount; i++) {
cs.allocateContainersToNode(candidates, false);
}
}
}

Expand All @@ -620,7 +623,10 @@ static void schedule(CapacityScheduler cs) throws InterruptedException{
if (candidates == null) {
continue;
}
cs.allocateContainersToNode(candidates, false);
int nodesPerPartitionCount = candidates.getAllNodes().size();
for (int i = 0; i < nodesPerPartitionCount; i++) {
cs.allocateContainersToNode(candidates, false);
}
}

}
Expand Down

0 comments on commit c24d569

Please sign in to comment.