[ 
https://issues.apache.org/jira/browse/YARN-4484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149414#comment-15149414
 ] 

Wangda Tan commented on YARN-4484:
----------------------------------

Thanks [~sunilg]/[~bibinchundatt],

bq. In new patch we can also take care of condition where the label mapping is 
not available in queue.
Sorry I may not get this, could you elaborate?

Few comments for the patch:
- Instead of using componentwiseMax, {{available-headroom-per-partition = 
partition-used >= partition-configured ? componentwiseMax(partition-configured 
- partition-used, 0) : 0}}. This is because when partition-used >= 
partition-configured, you cannot allocate anything so the available should be 
considered to 0.
- It's better to add a test.

> Available Resource calculation for a queue is not correct when used with 
> labels
> -------------------------------------------------------------------------------
>
>                 Key: YARN-4484
>                 URL: https://issues.apache.org/jira/browse/YARN-4484
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: capacity scheduler
>    Affects Versions: 2.7.1
>            Reporter: Sunil G
>            Assignee: Sunil G
>         Attachments: 0001-YARN-4484.patch
>
>
> To calculate available resource for a queue, we have to get the total 
> resource allocated for all labels in queue compare to its usage. 
> Also address the comments given in 
> [YARN-4304-comments|https://issues.apache.org/jira/browse/YARN-4304?focusedCommentId=15064874&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15064874
>  ] given by [~leftnoteasy] for same.
> ClusterMetrics related issues will also get handled once we fix this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to