[
https://issues.apache.org/jira/browse/YARN-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845959#comment-13845959
]
Vinod Kumar Vavilapalli commented on YARN-1197:
-----------------------------------------------
I just caught up with this. Well written document, thanks! Some questions:
- Decreasing resources:
-- Seems like the control flow is asymetrical for resource decrease. We
directly go to the node first. Is that intended? On first look, that seems fine
- decreasing resource usage on a node is akin to killing a container by talking
to NM directly.
-- In such applications that decrease container-resource, will the
application first instruct its container to reduce the resource usage and then
inform the platform? The reason this is important is if it doesn't happen that
way, node will forcefully either kill it when monitoring resource usage or
change its cgroup immediately causing the container to swap.
Also, I can see that some of the scheduler changes are going to be pretty
involved. I'd also vote for a branch. A couple of patches already went in and
I'm not even sure we already got them right and/or if they need more revisions
as we start making core changes. To avoid branch-rot, we could target a subset,
say just the resource-increase changes in the branch and do the remaining work
on trunk after merge.
> Support changing resources of an allocated container
> ----------------------------------------------------
>
> Key: YARN-1197
> URL: https://issues.apache.org/jira/browse/YARN-1197
> Project: Hadoop YARN
> Issue Type: Task
> Components: api, nodemanager, resourcemanager
> Affects Versions: 2.1.0-beta
> Reporter: Wangda Tan
> Assignee: Wangda Tan
> Attachments: mapreduce-project.patch.ver.1,
> tools-project.patch.ver.1, yarn-1197-v2.pdf, yarn-1197-v3.pdf,
> yarn-1197-v4.pdf, yarn-1197-v5.pdf, yarn-1197.pdf,
> yarn-api-protocol.patch.ver.1, yarn-pb-impl.patch.ver.1,
> yarn-server-common.patch.ver.1, yarn-server-nodemanager.patch.ver.1,
> yarn-server-resourcemanager.patch.ver.1
>
>
> The current YARN resource management logic assumes resource allocated to a
> container is fixed during the lifetime of it. When users want to change a
> resource
> of an allocated container the only way is releasing it and allocating a new
> container with expected size.
> Allowing run-time changing resources of an allocated container will give us
> better control of resource usage in application side
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)