[
https://issues.apache.org/jira/browse/YARN-7660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yang Wang updated YARN-7660:
----------------------------
Description:
When yarn rmadmin -updateNodeResource is used to update node resource, and
execute successfully. The new capability should be sent to NM througn RM-NM
heartbeat.
1. NM jmx metrics need to be updated
2. NM cgroup quota need to be updated
was:
{code:title=NodeManagerMetrics.java}
public void addResource(Resource res) {
availableMB = availableMB + res.getMemorySize();
availableGB.incr((int)Math.floor(availableMB/1024d));
availableVCores.incr(res.getVirtualCores());
}
{code}
When the node resource was updated through RM-NM heartbeat, the NM metric will
get wrong value.
The root cause of this issue is that new resource has been added to
availableMB, so not needed to increase for availableGB again.
> NM node resource should be updated through heartbeat when rmadmin
> updateNodeResource execute successfully
> ---------------------------------------------------------------------------------------------------------
>
> Key: YARN-7660
> URL: https://issues.apache.org/jira/browse/YARN-7660
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Yang Wang
>
> When yarn rmadmin -updateNodeResource is used to update node resource, and
> execute successfully. The new capability should be sent to NM througn RM-NM
> heartbeat.
> 1. NM jmx metrics need to be updated
> 2. NM cgroup quota need to be updated
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]