Wangda Tan commented on YARN-4418:


I'm not sure if we need to update am limit when called by REST API.
- getAMResourceLimitPerPartition has set AMLimit
- activateApplications will be called when doing updateClusterResource
- updateClusterResource will be called when resource of the cluster updated OR 
queue reinitialized
- AMResourceLimit will be changed only when resource the the cluster updated OR 
queue reinitialized

So I think getAMResourceLimit should always up-to-date and changes of 
CapacitySchedulerLeafQueueInfo should be reverted.


> AM Resource Limit per partition can be updated to ResourceUsage as well
> -----------------------------------------------------------------------
>                 Key: YARN-4418
>                 URL: https://issues.apache.org/jira/browse/YARN-4418
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.7.1
>            Reporter: Sunil G
>            Assignee: Sunil G
>         Attachments: 0001-YARN-4418.patch, 0002-YARN-4418.patch
> AMResourceLimit is now extended to all partitions after YARN-3216. Its also 
> better to track this ResourceLimit in existing {{ResourceUsage}} so that REST 
> framework can be benefited to avail this information easily. 

This message was sent by Atlassian JIRA

Reply via email to