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 856AC2004F5 for ; Fri, 1 Sep 2017 20:24:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83C3516D80F; Fri, 1 Sep 2017 18:24:15 +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 CBC8616D80C for ; Fri, 1 Sep 2017 20:24:14 +0200 (CEST) Received: (qmail 9348 invoked by uid 500); 1 Sep 2017 18:24:08 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 9337 invoked by uid 99); 1 Sep 2017 18:24:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2017 18:24:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0FAD1183C1E; Fri, 1 Sep 2017 18:24:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.75 X-Spam-Level: *** X-Spam-Status: No, score=3.75 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9Z_B39JfsYrZ; Fri, 1 Sep 2017 18:24:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 64CB55F5B8; Fri, 1 Sep 2017 18:24:05 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AC0F4E00DA; Fri, 1 Sep 2017 18:24:04 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id D0C16C41589; Fri, 1 Sep 2017 18:24:02 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2519646313174888398==" MIME-Version: 1.0 Subject: Re: Review Request 61126: Converted Timer value to counting semantics. From: Jiang Yan Xu To: Kevin Klues , Benjamin Mahler , Jiang Yan Xu Cc: James Peach , mesos Date: Fri, 01 Sep 2017 18:24:02 -0000 Message-ID: <20170901182402.29701.57872@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Jiang Yan Xu X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/61126/ X-Sender: Jiang Yan Xu References: <20170726000356.9520.84085@reviews-vm2.apache.org> In-Reply-To: <20170726000356.9520.84085@reviews-vm2.apache.org> Reply-To: Jiang Yan Xu X-ReviewRequest-Repository: mesos archived-at: Fri, 01 Sep 2017 18:24:15 -0000 --===============2519646313174888398== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/61126/#review184381 ----------------------------------------------------------- 3rdparty/libprocess/include/process/metrics/timer.hpp Lines 45-46 (patched) If we need a "sum", can we just add a field "sum"? Can we keep "value" to mean what it used to mean for backwards compatibility? It doesn't hurt right? Also, why do we (which must be Prometheus' rationale as well) need a sum? What useful thing can we do about it? This is related to the abstract concept of "counting semantics" that we need to document in a design. We need a whiteboard discussion offline but perhaps we should write it down for other reviewers. - Jiang Yan Xu On July 25, 2017, 5:03 p.m., James Peach wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/61126/ > ----------------------------------------------------------- > > (Updated July 25, 2017, 5:03 p.m.) > > > Review request for mesos, Benjamin Mahler, Kevin Klues, and Jiang Yan Xu. > > > Bugs: MESOS-6918 > https://issues.apache.org/jira/browse/MESOS-6918 > > > Repository: mesos > > > Description > ------- > > The value of a Timer was the elapsed time of the last timed > interval which is not a value that can be easily graphed > or interpreted. Replaced this with a counter which tracks > the cumulative elapsed time of all the measurements on this > Timer. This allows a monitoring application to plot the elapsed > time as a rate. > > > Diffs > ----- > > 3rdparty/libprocess/include/process/metrics/timer.hpp 0a9c0227c457c6c81a59f65f901a5464ee00983d > 3rdparty/libprocess/src/tests/metrics_tests.cpp 161ca0dc7aea526d450d71a80839d8cc075aaa31 > > > Diff: https://reviews.apache.org/r/61126/diff/3/ > > > Testing > ------- > > make check (Fedora 26). Note that this requires Mesos test changes in r/61127. > > > Thanks, > > James Peach > > --===============2519646313174888398==--