[
https://issues.apache.org/jira/browse/YARN-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542771#comment-14542771
]
Wangda Tan commented on YARN-1197:
----------------------------------
I agree to what [~kasha] mentioned, increasing Xmx doesn't like a very good
idea, I think we should treat JVM as a blackbox and not trying to hack it from
Yarn's perspective. It's fine if user's application do the Xmx stuffs to make
it shrinkable.
The reason why only support CPU enforcement is CPU enforcement in LCE is a soft
limit, and memory is a hard limit which can lead to process failure when memory
spike happens, you can check YARN-3 discussion for more details. YARN-2793 is
different, it tries to define the behavior of killing an over-used container
not how to enforce it.
Dynamic update cgroup is also not supported, but I think we should support it
with this ticket.
> 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
> Attachments: mapreduce-project.patch.ver.1,
> tools-project.patch.ver.1, yarn-1197-scheduler-v1.pdf, 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.3.4#6332)