Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6FF2E200BDF for ; Sat, 3 Dec 2016 12:09:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6EF8C160B0E; Sat, 3 Dec 2016 11:09:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C551E160B28 for ; Sat, 3 Dec 2016 12:09:00 +0100 (CET) Received: (qmail 47971 invoked by uid 500); 3 Dec 2016 11:08:59 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 47600 invoked by uid 99); 3 Dec 2016 11:08:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Dec 2016 11:08:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8F85D2C2AB9 for ; Sat, 3 Dec 2016 11:08:59 +0000 (UTC) Date: Sat, 3 Dec 2016 11:08:59 +0000 (UTC) From: "Arun Suresh (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5959) RM changes to support change of container ExecutionType MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 03 Dec 2016 11:09:01 -0000 [ https://issues.apache.org/jira/browse/YARN-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15717931#comment-15717931 ] Arun Suresh commented on YARN-5959: ----------------------------------- This can actually be accomplished in a scheduler agnostic manner. Promotion can be implemented as follows: # Create a dummy {{ResourceRequest}} with the same resource, priority etc. of the existing opportunistic container # Set the required resource name (target location) to the node on which in the original container was allocated. # Set *relaxLocality* to *false*. # Set the *allocationRequestId* of the request to be negative, so it will be considered before any other {{ResourceRequest}} with the same priority. # Once the scheduler allocates an {{RMContainer}} against the dummy request, swap the containerIds with the existing container and release this new container. This will ensure that the resource accounting is correct. The allocation path ensures that available resources in the queue, application and node resources are correctly decremented and the release ensures that only the opportunistic resource (essentially 0 resource container from the perspective of the scheduler) are reclaimed. Demotion will happen in exactly the reverse: A dummy OPPORTUNISTIC container is created to swap with the existing GUARANTEED container on the same node. The containerIds are then swapped the dummy container is release ensuring guaranteed resources are reclaimed. > RM changes to support change of container ExecutionType > ------------------------------------------------------- > > Key: YARN-5959 > URL: https://issues.apache.org/jira/browse/YARN-5959 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Arun Suresh > Assignee: Arun Suresh > > RM side changes to allow an AM to ask for change of ExecutionType. > Currently, there are two cases: > # *Promotion* : OPPORTUNISTIC to GUARANTEED. > # *Demotion* : GUARANTEED to OPPORTUNISTIC. > This is similar in YARN-1197 which allows for change in Container resources. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org