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 E870D200C63 for ; Thu, 27 Apr 2017 00:19:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E6F7E160BB4; Wed, 26 Apr 2017 22:19:08 +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 3A1C6160BA8 for ; Thu, 27 Apr 2017 00:19:08 +0200 (CEST) Received: (qmail 38912 invoked by uid 500); 26 Apr 2017 22:19:07 -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 38901 invoked by uid 99); 26 Apr 2017 22:19:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 22:19:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DF1AF1A7A86 for ; Wed, 26 Apr 2017 22:19:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TLCaLZa34aPC for ; Wed, 26 Apr 2017 22:19:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B21E95F177 for ; Wed, 26 Apr 2017 22:19:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F387DE0185 for ; Wed, 26 Apr 2017 22:19:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 33F7E21DEB for ; Wed, 26 Apr 2017 22:19:04 +0000 (UTC) Date: Wed, 26 Apr 2017 22:19:04 +0000 (UTC) From: "Wangda Tan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5881) Enable configuration of queue capacity in terms of absolute resources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Apr 2017 22:19:09 -0000 [ https://issues.apache.org/jira/browse/YARN-5881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985661#comment-15985661 ] Wangda Tan commented on YARN-5881: ---------------------------------- Thanks [~sunilg] for the POC patch, general approach looks good, several structural/cosmetic suggestions: 1) For the quotas (Like effective min/max, configured min/max, etc.) I think it is better put all of then to one class. Because it can handle following things better: a. for not existed label, it can return a zero resource instead of null. b. can have a separate lock. What I'm thinking now is moving common methods / fields from ResourceUsage to a common class, and leave all type-specifc methods (such as setCachedUsed) in the subclass. And we can create a a new class (Such as QueueResourceQuotas), which extend the base class, but with some methods to read/write queue resource quota types. Downside of the approach is, resources associated to one partition is determined by ResourceUsage#ResourceType. Without lots of changes, for each partition, it will include many unnecessary resource types (for example used_resource is unnecessary for ResourceQuotas). It looks not a big problem to me since accessing items in an array is very fast and number of partitions is limited. 2) Can we move {{loadResourceConstraintByLabelsFromConf}} from {{CSQueueUtils}} to AbstractCSQueue? Since it is more related to the queue and its parent queue, with this change lots of input parameters of {{loadResourceConstraintByLabelsFromConf}} can be removed. 3) For set effective min/max Resource, do you think we can only do it inside {{LeafQueue/ParentQueue#updateClusterResource}}? Now {{computeEffectiveResourcesForAllQueues}} creates a separate recursive call, I think it will be better to put all queue-resource-related changes inside {{LeafQueue/ParentQueue#updateClusterResource}}. Please let me know your thoughts. And for the next patch, it's better if you can update all scheduler paths to use getEffective*. > Enable configuration of queue capacity in terms of absolute resources > --------------------------------------------------------------------- > > Key: YARN-5881 > URL: https://issues.apache.org/jira/browse/YARN-5881 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Sean Po > Assignee: Wangda Tan > Attachments: YARN-5881.Support.Absolute.Min.Max.Resource.In.Capacity.Scheduler.design-doc.v1.pdf, YARN-5881.v0.patch, YARN-5881.v1.patch > > > Currently, Yarn RM supports the configuration of queue capacity in terms of a proportion to cluster capacity. In the context of Yarn being used as a public cloud service, it makes more sense if queues can be configured absolutely. This will allow administrators to set usage limits more concretely and simplify customer expectations for cluster allocation. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org