Skip to content

Commit 3ea19e1

Browse files
committed
YARN-11006. Allow overriding user limit factor and maxAMResourcePercent with AQCv2 templates
1 parent 7cb887e commit 3ea19e1

File tree

1 file changed

+1
-1
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity

1 file changed

+1
-1
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,12 +1707,12 @@ protected boolean canAssignToUser(Resource clusterResource,
17071707
@Override
17081708
protected void setDynamicQueueProperties(
17091709
CapacitySchedulerConfiguration configuration) {
1710-
super.setDynamicQueueProperties(configuration);
17111710
// set to -1, to disable it
17121711
configuration.setUserLimitFactor(getQueuePath(), -1);
17131712
// Set Max AM percentage to a higher value
17141713
configuration.setMaximumApplicationMasterResourcePerQueuePercent(
17151714
getQueuePath(), 1f);
1715+
super.setDynamicQueueProperties(configuration);
17161716
}
17171717

17181718
private void updateSchedulerHealthForCompletedContainer(

0 commit comments

Comments
 (0)