Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F43318F42 for ; Tue, 16 Jun 2015 23:00:17 +0000 (UTC) Received: (qmail 19494 invoked by uid 500); 16 Jun 2015 23:00:12 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 19443 invoked by uid 500); 16 Jun 2015 23:00:12 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 19431 invoked by uid 99); 16 Jun 2015 23:00:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2015 23:00:12 +0000 Date: Tue, 16 Jun 2015 23:00:12 +0000 (UTC) From: "MENG DING (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1197) Support changing resources of an allocated container MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14588963#comment-14588963 ] MENG DING commented on YARN-1197: --------------------------------- [~leftnoteasy], I am certainly OK doing (a). My original frustration was mainly about inconsistency in RM when doing decrease through NM, now that we have all agreed that decrease should go through RM, the problem is gone. So here is the latest proposal: * Container resource decrease: AM -> RM -> NM * Container resource increase: AM -> RM -> AM(token) -> NM. AM needs to poll status of container before using the additional allocation. Of course we need to properly handle token expiration (i.e., NM -> RM communication is needed to unregister the container from the expirer). In addition, I do *not* see a need for any response to be set in the {{AllocateResponseProto}}: * For resource decrease, we can assume it is always successful. * For resource increase, we are now doing polling to see if the increase is successful. Let me know if this makes sense. > 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: YARN-1197 old-design-docs-patches-for-reference.zip, YARN-1197_Design.pdf > > > 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)