hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Yan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2655) AllocatedGB/AvailableGB in nodemanager JMX showing only integer values
Date Wed, 08 Oct 2014 17:18:34 GMT

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

Wei Yan commented on YARN-2655:
-------------------------------

Thanks, [~nishan]. I think there is a bug inside the NodeManagerMetrics. i.e., 
{code}
  public void allocateContainer(Resource res) {
    allocatedContainers.incr();
    allocatedGB.incr(res.getMemory() / 1024);
    availableGB.decr(res.getMemory() / 1024);
    allocatedVCores.incr(res.getVirtualCores());
    availableVCores.decr(res.getVirtualCores());
  }
{code}
If the user configure the minimum allocation to 512 MB, the res is <512MB, 1vcore>,
the allocatedGB/availableGB nevel change.
I'll post a patch to fix this.

> AllocatedGB/AvailableGB in nodemanager JMX showing only integer values
> ----------------------------------------------------------------------
>
>                 Key: YARN-2655
>                 URL: https://issues.apache.org/jira/browse/YARN-2655
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.4.1
>            Reporter: Nishan Shetty
>            Priority: Minor
>         Attachments: screenshot-1.png, screenshot-2.png
>
>
> AllocatedGB/AvailableGB in nodemanager JMX showing only integer values
> Screenshot attached



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

Mime
View raw message