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

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

[~sunilg]/[~naganarasimha...@apache.org]
Another solution if the interface cant be changed is to just convert to float  
as following.Since value anyways  converted to long the conversion to float 
also will be fine.

{code}
  @Override
  public Resource multiplyAndNormalizeUp(Resource r, double by,
      Resource stepFactor) {
    return Resources.createResource(
        roundUp(
            (long) Math.ceil((float) (r.getMemorySize() * by)),
            stepFactor.getMemorySize()),
        roundUp(
            (int) Math.ceil((float) (r.getVirtualCores() * by)),
            stepFactor.getVirtualCores())
        );
  }
{code}

> Queue AM limit is not honored  in CS always
> -------------------------------------------
>
>                 Key: YARN-6428
>                 URL: https://issues.apache.org/jira/browse/YARN-6428
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>         Attachments: YARN-6428.0001.patch, YARN-6428.0002.patch
>
>
> Steps to reproduce
> ------------------------
> Setup cluster with 40 GB and 40 vcores with 4 Node managers with 10 GB each.
> Configure 100% to default queue as capacity and max am limit as 10 %
> Minimum scheduler memory and vcore as 512,1
> *Expected* 
> AM limit 4096 and 4 vores
> *Actual*
> AM limit 4096+512 and 4+1 vcore



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
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