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 12302200B36 for ; Wed, 22 Jun 2016 02:27:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 10C36160A60; Wed, 22 Jun 2016 00:27:00 +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 56E8E160A63 for ; Wed, 22 Jun 2016 02:26:59 +0200 (CEST) Received: (qmail 85983 invoked by uid 500); 22 Jun 2016 00:26:58 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 85759 invoked by uid 99); 22 Jun 2016 00:26:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 00:26:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2728A2C1F70 for ; Wed, 22 Jun 2016 00:26:58 +0000 (UTC) Date: Wed, 22 Jun 2016 00:26:58 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13305) Define common statistics names across schemes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Jun 2016 00:27:00 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13305?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mingliang Liu updated HADOOP-13305: ----------------------------------- Attachment: HADOOP-13305.000.patch The v0 patch: - Defines common file system operation related statistics in a interface - Refers the common names in the {{DFSOpsCountStatistics}} and {{s3a/Statis= tic}} classes - Makes {{StorageStatistics}} abstract class return its scheme, if it's sch= eme specific (mostly it is, e.g. {{DFSOpsCountStatistics}}, {{s3a/Statistic= }}, and {{FileSystemStorageStatistics}}). Considering the common names are = shared across different file system schemes, downstream applications need t= his information for eaiser interpretation and categorization. - Adds a simple unit test for unique OpType names > Define common statistics names across schemes > --------------------------------------------- > > Key: HADOOP-13305 > URL: https://issues.apache.org/jira/browse/HADOOP-13305 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs > Affects Versions: 2.8.0 > Reporter: Mingliang Liu > Assignee: Mingliang Liu > Fix For: 2.8.0 > > Attachments: HADOOP-13305.000.patch > > > The {{StorageStatistics}} provides a pretty general interface, i.e. {{get= Long(name)}} and {{getLongStatistics()}}. There is no shared or standard na= mes for the storage statistics and thus the getLong(name) is up to the impl= ementation of storage statistics. The problems: > # For the common statistics, downstream applications expect the same stat= istics name across different storage statistics and/or file system schemes.= Chances are they have to use {{DFSOpsCountStorageStatistics#getLong(=E2=80= =9CgetStatus=E2=80=9D)}} and {{S3A.Statistics#getLong(=E2=80=9Cget_status= =E2=80=9D)}} for retrieving the getStatus operation stat. > # Moreover, probing per-operation stats is hard if there is no standard/s= hared common names. > It makes a lot of sense for different schemes to issue the per-operation = stats of the same name. Meanwhile, every FS will have its own internal thin= gs to count, which can't be centrally defined or managed. But there are som= e common which would be easier managed if they all had the same name. > Another motivation is that having a common set of names here will encoura= ge uniform instrumentation of all filesystems; it will also make it easier = to analyze the output of runs, were the stats to be published to a "perform= ance log" similar to the audit log. See Steve's work for S3 (e.g. [HADOOP-= 13171]) > This jira is track the effort of defining common StorageStatistics entry = names. Thanks to [~cmccabe], [~stevel@apache.org], [~hitesh] and [~jnp] for= offline discussion. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org