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 53A4D200CC2 for ; Wed, 5 Jul 2017 19:34:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 51D43163F22; Wed, 5 Jul 2017 17:34:19 +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 99682163F1F for ; Wed, 5 Jul 2017 19:34:18 +0200 (CEST) Received: (qmail 76149 invoked by uid 500); 5 Jul 2017 17:34:17 -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 76138 invoked by uid 99); 5 Jul 2017 17:34:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2017 17:34:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id F3ED0C059A; Wed, 5 Jul 2017 17:34:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.451 X-Spam-Level: **** X-Spam-Status: No, score=4.451 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, NML_ADSP_CUSTOM_MED=1.2, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id m57EW-khLsdw; Wed, 5 Jul 2017 17:34:15 +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 64D4D5F6BE; Wed, 5 Jul 2017 17:34:15 +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 05626E0012; Wed, 5 Jul 2017 17:34:15 +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 918DEC400BE; Wed, 5 Jul 2017 17:34:14 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8840857897829008695==" MIME-Version: 1.0 Subject: Re: Review Request 60638: Adjusted allocator interfaces to allow passing new agent total. From: Jie Yu To: Jie Yu , Benjamin Mahler , Jan Schlicht Cc: Benjamin Bannier , mesos Date: Wed, 05 Jul 2017 17:34:13 -0000 Message-ID: <20170705173413.62134.32862@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Jie Yu X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/60638/ X-Sender: Jie Yu References: <20170704144026.53935.5441@reviews-vm2.apache.org> In-Reply-To: <20170704144026.53935.5441@reviews-vm2.apache.org> Reply-To: Jie Yu X-ReviewRequest-Repository: mesos archived-at: Wed, 05 Jul 2017 17:34:19 -0000 --===============8840857897829008695== 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/60638/#review179659 ----------------------------------------------------------- include/mesos/allocator/allocator.hpp Line 219 (original), 220-221 (patched) It's quite confusing to the readers when there are two fields there. Does 'total' include 'oversubscribed' resources? I am wondering if we can combine these two fields in the allocator. Updating 'oversubscribed' is a special case of updating 'total'? - Jie Yu On July 4, 2017, 2:40 p.m., Benjamin Bannier wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/60638/ > ----------------------------------------------------------- > > (Updated July 4, 2017, 2:40 p.m.) > > > Review request for mesos, Benjamin Mahler, Jie Yu, and Jan Schlicht. > > > Bugs: MESOS-7755 > https://issues.apache.org/jira/browse/MESOS-7755 > > > Repository: mesos > > > Description > ------- > > This change adjust interfaces, implementations and users of the > 'updateSlave' method. This allows to pass an additional argument > denoting an updated 'total' amount of resource on the agents. > > In a subsequent commit we will update the 'HierarchicalAllocator' to > interpret this value. > > > Diffs > ----- > > include/mesos/allocator/allocator.hpp bec9e0b8ef8d51ec22f9e8af69407ed5ecaa3e8f > src/master/allocator/mesos/allocator.hpp 2e780c92d5c5132abff32f1ce051c3bab2947f37 > src/master/allocator/mesos/hierarchical.hpp 5c58cf401de9205e54300e0ce8433995cdf5cb7a > src/master/allocator/mesos/hierarchical.cpp eb01d8e6b1108866ebc049f9f4a46157823a3541 > src/master/master.cpp 95e9691b3e3ef101e3e7ddc7a498d5c5bf2276e3 > src/tests/allocator.hpp a990788d5218bbcac499613783750ade022811a7 > src/tests/hierarchical_allocator_tests.cpp 2a312a9af4bae679a0a4e7bf45a3c013513c5da2 > > > Diff: https://reviews.apache.org/r/60638/diff/1/ > > > Testing > ------- > > Tested with https://reviews.apache.org/r/60639/. > > > Thanks, > > Benjamin Bannier > > --===============8840857897829008695==--