Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F226A10E7D for ; Tue, 30 Dec 2014 22:11:28 +0000 (UTC) Received: (qmail 45154 invoked by uid 500); 30 Dec 2014 22:11:24 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 45080 invoked by uid 500); 30 Dec 2014 22:11:24 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 45043 invoked by uid 99); 30 Dec 2014 22:11:22 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2014 22:11:22 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 516E41C8EF6; Tue, 30 Dec 2014 22:11:21 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1941298270215805737==" MIME-Version: 1.0 Subject: Re: Review Request 28698: [WIP] Modified Resources to account for reservation type. From: "Michael Park" To: "Benjamin Hindman" , "Adam B" , "Jie Yu" , "Ben Mahler" , "Vinod Kone" Cc: "mesos" , "Michael Park" Date: Tue, 30 Dec 2014 22:11:21 -0000 Message-ID: <20141230221121.31226.85243@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Michael Park" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/28698/ X-Sender: "Michael Park" References: <20141219020501.12935.31162@reviews.apache.org> In-Reply-To: <20141219020501.12935.31162@reviews.apache.org> Reply-To: "Michael Park" X-ReviewRequest-Repository: mesos-git --===============1941298270215805737== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Dec. 19, 2014, 2:05 a.m., Adam B wrote: > > include/mesos/resources.hpp, lines 64-69 > > > > > > Does this always assume STATIC? Shouldn't you be able to parse a string into name/value/role while also specifying the reservation type? This one was intentionally put off for 2 reasons. 1. We would have to change the syntax for resources. Current syntax is "name(role):value;...", how should we introduce the dynamic reservation there? perhaps "name[role]:value"? I mentioned this to Tim Chen and he suggested maybe we just ditch this and resort to a JSON format or something more explicit. 2. I don't think we quite want to allow slave resources on the command line to include dynamic reservations. If we allow dynamic reservations to be specified here, we would have to explicitly check for this in the command line and maybe other places we want to disallow it. > On Dec. 19, 2014, 2:05 a.m., Adam B wrote: > > include/mesos/resources.hpp, lines 56-62 > > > > > > So you expect that this will be called by something (e.g. checkpoint recovery) that already knows whether to interpret the strings as a static or dynamic reservation? I added it because I thought it may be useful for tests, but we don't actually need it nor use it currently. I can remove it for now. - Michael ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28698/#review65561 ----------------------------------------------------------- On Dec. 30, 2014, 2:44 a.m., Michael Park wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28698/ > ----------------------------------------------------------- > > (Updated Dec. 30, 2014, 2:44 a.m.) > > > Review request for mesos, Adam B, Benjamin Hindman, Ben Mahler, Jie Yu, and Vinod Kone. > > > Repository: mesos-git > > > Description > ------- > > Modified Resources to account for reservation type. > > > Diffs > ----- > > include/mesos/resources.hpp f1517b73def9aff4039f95a89f66208ba1d21c0f > src/common/resources.cpp c17e1791130e7d545bb7cdd54d97d65325d3a69e > > Diff: https://reviews.apache.org/r/28698/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Michael Park > > --===============1941298270215805737==--