You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Bibin A Chundatt (JIRA)" <ji...@apache.org> on 2016/08/17 18:05:21 UTC

[jira] [Commented] (YARN-5533) Jmx AM Used metrics for queue wrong when app submited to parition

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

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

During activate application the metrics is updated as below

{code}
      queueUsage.incAMUsed(partitionName,
          application.getAMResource(partitionName));
      user.getResourceUsage().incAMUsed(partitionName,
          application.getAMResource(partitionName));
      user.getResourceUsage().setAMLimit(partitionName, userAMLimit);
      metrics.incAMUsed(application.getUser(),
          application.getAMResource(partitionName));
{code}

When applcation is removed the partition is missed
{code}
      queueUsage.decAMUsed(partitionName,
          application.getAMResource(partitionName));
      user.getResourceUsage().decAMUsed(partitionName,
          application.getAMResource(partitionName));
      metrics.decAMUsed(application.getUser(), application.getAMResource());
{code}

Should be {{application.getAMResource(partitionName)}}

> Jmx AM Used metrics for queue wrong when app submited to parition
> -----------------------------------------------------------------
>
>                 Key: YARN-5533
>                 URL: https://issues.apache.org/jira/browse/YARN-5533
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>
> # Configure cluster with node label 
> # Configure default and root queue with label capacity 100
> # Submit application to labelx and default queue
> # Wait for application completion
> # Check queue jmx metrics
> {noformat}
>  "name" : "Hadoop:service=ResourceManager,name=QueueMetrics,q0=root,q1=default",
>     "modelerType" : "QueueMetrics,q0=root,q1=default",
>     "tag.Queue" : "root.default",
>     "tag.Context" : "yarn",
>     "tag.Hostname" : "localhost",
>     "running_0" : 0,
>     "running_60" : 0,
>     "running_300" : 0,
>     "running_1440" : 0,
>     "AMResourceLimitMB" : 512,
>     "AMResourceLimitVCores" : 1,
>     "UsedAMResourceMB" : 3072,
>     "UsedAMResourceVCores" : 2,
> {noformat}



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

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