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 C8BD0200C16 for ; Thu, 26 Jan 2017 00:18:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C7463160B5A; Wed, 25 Jan 2017 23:18:58 +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 1DE3D160B4E for ; Thu, 26 Jan 2017 00:18:57 +0100 (CET) Received: (qmail 23379 invoked by uid 500); 25 Jan 2017 23:18:57 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 23348 invoked by uid 99); 25 Jan 2017 23:18:57 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2017 23:18:57 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 482A83177FF; Wed, 25 Jan 2017 23:18:55 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6160674978237853941==" MIME-Version: 1.0 Subject: Re: Review Request 55089: AURORA-1826 Expose Thrift server request workload stats From: Mehrdad Nurolahzade To: David McLaughlin , Stephan Erb Cc: Aurora ReviewBot , Mehrdad Nurolahzade , Reza Motamedi , Aurora Date: Wed, 25 Jan 2017 23:18:55 -0000 Message-ID: <20170125231855.13409.87609@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Mehrdad Nurolahzade X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/55089/ X-Sender: Mehrdad Nurolahzade References: <20170125231103.13408.71768@reviews.apache.org> In-Reply-To: <20170125231103.13408.71768@reviews.apache.org> X-ReviewBoard-Diff-For: src/main/java/org/apache/aurora/scheduler/thrift/aop/Measured.java Reply-To: Mehrdad Nurolahzade X-ReviewRequest-Repository: aurora archived-at: Wed, 25 Jan 2017 23:18:59 -0000 --===============6160674978237853941== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Jan. 25, 2017, 3:11 p.m., Stephan Erb wrote: > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 427 > > > > > > This annotation can be very missleading when adding a new API endpoint. If you add it to a method it will only be tracked if one has edited in a completly different part of the code. Would it be possible to write something like the following? > > > > ``` > > @ThriftWorkload(result -> result.getJobSummaryResult().getSummariesSize()) > > ``` I like it! Let me try. - Mehrdad ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55089/#review163042 ----------------------------------------------------------- On Dec. 29, 2016, 9:58 p.m., Mehrdad Nurolahzade wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55089/ > ----------------------------------------------------------- > > (Updated Dec. 29, 2016, 9:58 p.m.) > > > Review request for Aurora, David McLaughlin and Stephan Erb. > > > Bugs: AURORA-1826 > https://issues.apache.org/jira/browse/AURORA-1826 > > > Repository: aurora > > > Description > ------- > > AURORA-1826 Expose Thrift server request workload stats > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 16b1b52f8691d978a9ec1bf7aa0c9716b3484cf0 > src/main/java/org/apache/aurora/scheduler/thrift/aop/Measured.java PRE-CREATION > src/main/java/org/apache/aurora/scheduler/thrift/aop/ThriftStatsExporterInterceptor.java d57f910d8f9bbe5c24aec960e88d03702bc353da > src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java b28cd2489a52041a8e7e53f298fad8d8cd29406f > src/test/java/org/apache/aurora/scheduler/thrift/aop/ThriftStatsExporterInterceptorTest.java 9c40ec51c28c8c57365dc21c3cd7391a3894784c > > Diff: https://reviews.apache.org/r/55089/diff/ > > > Testing > ------- > > ``` > curl 192.168.33.7:8081/vars | grep thrift_workload > % Total % Received % Xferd Average Speed Time Time Time Current > Dload Upload Total Spent Left Speed > 100 41334 0 41334 0 0 3695k 0 --:--:-- --:--:-- --:--:-- 4036k > thrift_workload_addInstances 0 > thrift_workload_createJob 0 > thrift_workload_createOrUpdateCronTemplate 0 > thrift_workload_drainHosts 0 > thrift_workload_endMaintenance 0 > thrift_workload_getConfigSummary 0 > thrift_workload_getJobSummary 0 > thrift_workload_getJobUpdateDetails 0 > thrift_workload_getJobUpdateSummaries 0 > thrift_workload_getJobs 0 > thrift_workload_getPendingReason 0 > thrift_workload_getRoleSummary 0 > thrift_workload_getTaskStatus 0 > thrift_workload_getTasksWithoutConfigs 0 > thrift_workload_killTasks 0 > thrift_workload_maintenanceStatus 0 > thrift_workload_restartShards 0 > thrift_workload_rewriteConfigs 0 > thrift_workload_startJobUpdate 0 > thrift_workload_startMaintenance 0 > ``` > > ``` > ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh > > ... > > *** OK (All tests passed) *** > > mesos-master start/running, process 2359 > + RETCODE=0 > + restore_netrc > + mv /home/vagrant/.netrc.bak /home/vagrant/.netrc > + true > Connection to 127.0.0.1 closed. > > real 28m58.389s > user 0m1.508s > sys 0m0.820s > ``` > > > Thanks, > > Mehrdad Nurolahzade > > --===============6160674978237853941==--