9uapaw commented on a change in pull request #3500:
URL: https://github.com/apache/hadoop/pull/3500#discussion_r730802520



##########
File path: 
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
##########
@@ -2326,6 +2326,57 @@ public void stopQueue() {
     }
   }
 
+  void updateMaximumApplications(CapacitySchedulerConfiguration conf) {
+    int maxAppsForQueue = conf.getMaximumApplicationsPerQueue(getQueuePath());
+
+    int maxGlobalApplications = conf.getGlobalMaximumApplicationsPerQueue();
+    int maxSystemApplications = conf.getMaximumSystemApplications();
+    int baseMaxApplications = maxGlobalApplications > 0 ?
+        maxGlobalApplications : maxSystemApplications;

Review comment:
       The problem with this approach is that system max app defaults to 10000. 
This means you basically can not set maxGlobalApp higher than this value, 
because it will be trimmed to 10000. We could pursue this path by making 
maxSystemApp defaults to -1 and check if it is defined, but I am not convinced 
it is worth the effort.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to