Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F9C3184EF for ; Wed, 24 Feb 2016 13:07:08 +0000 (UTC) Received: (qmail 76363 invoked by uid 500); 24 Feb 2016 13:06:55 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 76337 invoked by uid 500); 24 Feb 2016 13:06:55 -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 76322 invoked by uid 99); 24 Feb 2016 13:06:55 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 13:06:55 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 448202A924F; Wed, 24 Feb 2016 13:06:55 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6241328032802459327==" MIME-Version: 1.0 Subject: Re: Review Request 43879: Added allocator metrics for number of allocations made. From: Guangya Liu To: Ben Mahler , Alexander Rukletsov Cc: Benjamin Bannier , Guangya Liu , mesos Date: Wed, 24 Feb 2016 13:06:55 -0000 Message-ID: <20160224130655.2434.40621@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Guangya Liu X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/43879/ X-Sender: Guangya Liu References: <20160224102227.2433.35862@reviews.apache.org> In-Reply-To: <20160224102227.2433.35862@reviews.apache.org> Reply-To: Guangya Liu X-ReviewRequest-Repository: mesos --===============6241328032802459327== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/43879/#review120492 ----------------------------------------------------------- src/master/allocator/mesos/hierarchical.hpp (lines 25 - 26) not yours, but I think that it is better add a blank line between 25 and 26 src/tests/hierarchical_allocator_tests.cpp (lines 2390 - 2391) What about `Clock::advance(Seconds(2))` Also want to know why using 2s here? src/tests/hierarchical_allocator_tests.cpp (line 2398) I saw that most are using `Seconds(15)` src/tests/hierarchical_allocator_tests.cpp (line 2430) Days(365) src/tests/hierarchical_allocator_tests.cpp (line 2435) Why using double here? Should not this be int? - Guangya Liu On 二月 24, 2016, 10:22 a.m., Benjamin Bannier wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/43879/ > ----------------------------------------------------------- > > (Updated 二月 24, 2016, 10:22 a.m.) > > > Review request for mesos, Alexander Rukletsov and Ben Mahler. > > > Bugs: MESOS-4718 > https://issues.apache.org/jira/browse/MESOS-4718 > > > Repository: mesos > > > Description > ------- > > Added allocator metrics for number of allocations made. > > > Diffs > ----- > > src/master/allocator/mesos/hierarchical.hpp 3043888630b066505410d3b32c5b3f813cc458c1 > src/master/allocator/mesos/hierarchical.cpp 5ef29f26ec8071f79c2f4f78dbe2bb0a613cc92d > src/tests/hierarchical_allocator_tests.cpp 5f771f02db9bd098f3cd36730cd84bf2f5e87a33 > > Diff: https://reviews.apache.org/r/43879/diff/ > > > Testing > ------- > > make check (OS X) > > I confirmed that this does not lead to general performance regressions in the allocator; this is partially expected since the added code only inserts metrics in the allocator while the actual work is perform asynchronously. These tests where performed with `HierarchicalAllocator_BENCHMARK_Test.DeclineOffers` on an optimized build under OS X using clang(trunk) as compiler. > > > Thanks, > > Benjamin Bannier > > --===============6241328032802459327==--