You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Naganarasimha G R (JIRA)" <ji...@apache.org> on 2016/02/21 19:54:18 UTC

[jira] [Created] (YARN-4712) CPU Usage Metric is not captured properly in YARN-2928

Naganarasimha G R created YARN-4712:
---------------------------------------

             Summary: CPU Usage Metric is not captured properly in YARN-2928
                 Key: YARN-4712
                 URL: https://issues.apache.org/jira/browse/YARN-4712
             Project: Hadoop YARN
          Issue Type: Sub-task
            Reporter: Naganarasimha G R
            Assignee: Naganarasimha G R


There are 2 issues with CPU usage collection 
* I was able to observe that that many times CPU usage got from {{pTree.getCpuUsagePercent()}} is ResourceCalculatorProcessTree.UNAVAILABLE(i.e. -1) but ContainersMonitor do the calculation  i.e. {{cpuUsageTotalCoresPercentage = cpuUsagePercentPerCore /resourceCalculatorPlugin.getNumProcessors()}} because of which UNAVAILABLE check in {{NMTimelinePublisher.reportContainerResourceUsage}} is not encountered. so proper checks needs to be handled
* {{EntityColumnPrefix.METRIC}} uses always LongConverter but ContainerMonitor is publishing decimal values for the CPU usage.



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