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

Bibin A Chundatt commented on YARN-9785:
----------------------------------------

Sunil

Check the wip patch . Finding the following issue with approach considering 
only the compare method

||Cluster Resource||lhs||rhs||Detail||STATUS||
|<0,0,0>|<1240,2,0>|<0,0,0>|NA|(/)|
|<10240,10,0>|<2048,2,0>|<2048,8,0>|calculateShares->firstShares  lhs   
..2,.2,INF
calculateShares-> secondShares  rhs   .2,.8,INF
compareShares  ->   .2,.2,INF   to  .2,.8,INF
compareShares  ->   INF,..2,.2         INF,.8,.2|(/)|
|<10240,10,0>|<4096,2,0>|<2048,8,0>|calculateShares->firstShares  lhs   
..4,.2,INF
calculateShares-> secondShares  rhs   .2,.8,INF
compareShares  ->   .4,.2,INF   to  .2,.8,INF
compareShares sort ->   INF,.4,.2         INF,.8,.2
diff -.4 return -1 |(x)|

*Detail in case of activate application:*

*rhs* -> amlimit
*lhs* -> amifStarted

_Resources.lessThanOrEqual(resourceCalculator, lastClusterResource,amIfStarted, 
amLimit)_ -> true and application gets activated.











                

> Application gets activated even when AM memory has reached
> ----------------------------------------------------------
>
>                 Key: YARN-9785
>                 URL: https://issues.apache.org/jira/browse/YARN-9785
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Bilwa S T
>            Assignee: Bilwa S T
>            Priority: Blocker
>         Attachments: YARN-9785-001.patch, YARN-9785.wip.patch
>
>
> Configure below property in resource-types.xml
> {quote}<property>
>  <name>yarn.resource-types</name>
>  <value>yarn.io/gpu</value>
>  </property>
> {quote}
> Submit applications even after AM limit for a queue is reached. Applications 
> get activated even after limit is reached
> !queue.png!



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to