[
https://issues.apache.org/jira/browse/YARN-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
MENG DING updated YARN-1643:
----------------------------
Attachment: YARN-3867-YARN-1197.5.patch
Upload the patch that supports *synchronous* resource update in
{{ContainersMonitorImpl}}.
There are a number of changes:
* Extract out the code from the {{MonitoringThread.run}} and put it into a
common function {{enforceResourceLimits}}. This function will be called by both
ContainersMonitorImpl's monitoring thread, and the ContainerManagerImpl thread,
so it needs to be synchronized (in order to guard access to the
{{trackingContainers}} object).
* Call container.setResource directly to update container resource.
* Add {{TestContainerManager#testChangeContainerResource}} and
{{TestContainersMonitorResourceChange}} test cases.
> Make ContainersMonitor can support change monitoring size of an allocated
> container in NM side
> ----------------------------------------------------------------------------------------------
>
> Key: YARN-1643
> URL: https://issues.apache.org/jira/browse/YARN-1643
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: nodemanager
> Reporter: Wangda Tan
> Assignee: MENG DING
> Attachments: YARN-1643-YARN-1197.4.patch,
> YARN-1643-YARN-1197.5.patch, YARN-1643.1.patch, YARN-1643.2.patch,
> YARN-1643.3.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)