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 7340A17711 for ; Sat, 24 Jan 2015 00:43:37 +0000 (UTC) Received: (qmail 57433 invoked by uid 500); 24 Jan 2015 00:43:37 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 57386 invoked by uid 500); 24 Jan 2015 00:43:37 -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 57375 invoked by uid 99); 24 Jan 2015 00:43:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jan 2015 00:43:37 +0000 Date: Sat, 24 Jan 2015 00:43:37 +0000 (UTC) From: "Wangda Tan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-3092) Create common resource usage class to track labeled resource/capacity in Capacity Scheduler 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-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wangda Tan updated YARN-3092: ----------------------------- Attachment: YARN-3092.2.patch Thanks review from [~jianhe], updated patch addressed all comments. > Create common resource usage class to track labeled resource/capacity in Capacity Scheduler > ------------------------------------------------------------------------------------------- > > Key: YARN-3092 > URL: https://issues.apache.org/jira/browse/YARN-3092 > Project: Hadoop YARN > Issue Type: Sub-task > Components: api, client, resourcemanager > Reporter: Wangda Tan > Assignee: Wangda Tan > Attachments: YARN-3092.1.patch, YARN-3092.2.patch > > > Since we have labels on nodes, so we need to track resource usage *by labels*, includes > - AM resource (to enforce max-am-resource-by-label after YARN-2637) > - Used resource (includes AM resource usage) > - Reserved resource > - Pending resource > - Headroom > Benefits to have such a common class are: > - Reuse lots of code in different places (Queue/App/User), better maintainability and readability. > - Can make fine-grained locking (e.g. accessing used resource in a queue doesn't need lock a queue) -- This message was sent by Atlassian JIRA (v6.3.4#6332)