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 792D6200CD9 for ; Thu, 20 Jul 2017 02:27:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7793716A456; Thu, 20 Jul 2017 00:27: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 BA98F16A452 for ; Thu, 20 Jul 2017 02:27:07 +0200 (CEST) Received: (qmail 40215 invoked by uid 500); 20 Jul 2017 00:27:06 -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 40204 invoked by uid 99); 20 Jul 2017 00:27:06 -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; Thu, 20 Jul 2017 00:27:06 +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 50D5A1A1B4F for ; Thu, 20 Jul 2017 00:27: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 a-ptISmRe4nX for ; Thu, 20 Jul 2017 00:27:05 +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 414235F5B3 for ; Thu, 20 Jul 2017 00:27: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 454B9E09FE for ; Thu, 20 Jul 2017 00:27: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 8234D21EC9 for ; Thu, 20 Jul 2017 00:27:01 +0000 (UTC) Date: Thu, 20 Jul 2017 00:27:01 +0000 (UTC) From: "Naganarasimha G R (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6492) Generate queue metrics for each partition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Jul 2017 00:27:08 -0000 [ https://issues.apache.org/jira/browse/YARN-6492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094003#comment-16094003 ] Naganarasimha G R commented on YARN-6492: ----------------------------------------- Thanks [~manirajv06@gmail.com] for the patch, and sorry for the delay in responding. I had following high level comments on the approach and scenarios covered: # User metrics needs to be updated under the partition Queue metric. As we need to capture for each queue under a partition how much resource has been utlized by a user. # Sorry to retract on the approach, when going through the code i was fealing the approach of the Queue structure is little different from how its displayed in the ui and processed during scheduling as well. Currently we are trying to capture within a queue whats the partition queue's queue metrics. IMO it should be for each partition we should have the queue hierarchy i.e the existing QueueMetrics with user metrics. This would give a better structure earlier planned approach {code} QueueMetric metrics Usermetrics Partition Metrics UserMetrics childQueueMetrics {code} IMO it should be some thing like {code} Partitions PartitionMetric QueueMetric metrics Usermetrics childQueueMetrics PartitionMetric QueueMetric ... Partitions QueueMetric //existing for default metrics to maintain compatability metrics Usermetrics {code} But at the same time we should not break the compatability. Thoughts? May be you can attach the existing structure for a simple queue hierarchy for others to visualize. Thoughts [~sunilg] , [~jlowe] ? Implementation # Ensure the metrics are updated up the tree hierarchy from the leaf till the root on every update on partition metric. I think its taken care but just add test and ensure in manual testing too # QueueMetrics.java : New overloaded constructor can make a call to existing constructor internally with required arguments instead of both methods doing the update. Would go through the patch in more detail once the approach gets finalized. > Generate queue metrics for each partition > ----------------------------------------- > > Key: YARN-6492 > URL: https://issues.apache.org/jira/browse/YARN-6492 > Project: Hadoop YARN > Issue Type: Improvement > Components: capacity scheduler > Reporter: Jonathan Hung > Assignee: Manikandan R > Attachments: YARN-6492.001.patch > > > We are interested in having queue metrics for all partitions. Right now each queue has one QueueMetrics object which captures metrics either in default partition or across all partitions. (After YARN-6467 it will be in default partition) > But having the partition metrics would be very useful. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org