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 79BF3200B9A for ; Thu, 22 Sep 2016 22:28:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7860C160AAD; Thu, 22 Sep 2016 20:28:22 +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 BC4F7160AA9 for ; Thu, 22 Sep 2016 22:28:21 +0200 (CEST) Received: (qmail 65910 invoked by uid 500); 22 Sep 2016 20:28:20 -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 65845 invoked by uid 99); 22 Sep 2016 20:28:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 20:28:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 968EF2C2AB6 for ; Thu, 22 Sep 2016 20:28:20 +0000 (UTC) Date: Thu, 22 Sep 2016 20:28:20 +0000 (UTC) From: "Eric Payne (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2009) Priority support for preemption in ProportionalCapacityPreemptionPolicy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Sep 2016 20:28:22 -0000 [ https://issues.apache.org/jira/browse/YARN-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15514393#comment-15514393 ] Eric Payne commented on YARN-2009: ---------------------------------- bq. So we could take a max(guaranteed, used). Will this be fine? I don't think so. If {{tq.getActuallyToBePreempted}} is non-zero, it represents the amount that will be preempted from what {{tq}} is currently using, not {{tq}}'s guaranteed resources. The purpose of this line of code is to set {{tq}}'s unallocated resources. But even if {{tq}} is below it's guarantee, the amount of resources that intra-queue preemption should consider when balancing is not the queue's guarantee, it's what the queue is already using. If {{tq}} is below its guarantee, inter-queue preemption should be handling that. bq. app1 of user1 used entire queue. app2 of user2 asks more resource The use case I'm referencing regarding this code is not regarding 2 different users. It's regarding the same user submitting jobs of different priorities. If {{user1}} submits a low priority job that consumes the whole queue, {{user1}}'s headroom will be 0. Then, when {{user1}} submits a second app at a higher priority, this code will cause the second app to starve because {{user1}} has already used up its allocation. > Priority support for preemption in ProportionalCapacityPreemptionPolicy > ----------------------------------------------------------------------- > > Key: YARN-2009 > URL: https://issues.apache.org/jira/browse/YARN-2009 > Project: Hadoop YARN > Issue Type: Sub-task > Components: capacityscheduler > Reporter: Devaraj K > Assignee: Sunil G > Attachments: YARN-2009.0001.patch, YARN-2009.0002.patch > > > While preempting containers based on the queue ideal assignment, we may need to consider preempting the low priority application containers first. -- 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