Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76A8C105BC for ; Thu, 13 Jun 2013 23:44:37 +0000 (UTC) Received: (qmail 63645 invoked by uid 500); 13 Jun 2013 23:44:37 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 63528 invoked by uid 500); 13 Jun 2013 23:44:37 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 63517 invoked by uid 99); 13 Jun 2013 23:44:37 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 23:44:37 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 27DB81CCBC5; Thu, 13 Jun 2013 23:44:28 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8366808899680484429==" MIME-Version: 1.0 Subject: Re: Review Request: WDRF 2 - Add concept of valid roles From: "Vinod Kone" To: "Benjamin Hindman" Cc: "Thomas Marshall" , "mesos" , "Vinod Kone" Date: Thu, 13 Jun 2013 23:44:28 -0000 Message-ID: <20130613234428.1041.52962@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Vinod Kone" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/11206/ X-Sender: "Vinod Kone" References: <20130613192457.3558.28038@reviews.apache.org> In-Reply-To: <20130613192457.3558.28038@reviews.apache.org> Reply-To: "Vinod Kone" --===============8366808899680484429== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/11206/#review21872 ----------------------------------------------------------- src/master/master.hpp const? src/master/master.cpp Why do we always want to allow a default role? src/master/master.cpp why don't we call the member 'role' instead of 'name'? = I think it is a bit confusing that we call the flag tokens 'role's, but= we have a class called 'Role' and an attribute of RoleInfo called 'name' w= hich is actually a 'role'. = src/master/master.cpp Don't we have to check this in re-register too? src/tests/allocator_tests.cpp Can we add tests for when frameworks connect with a role that is known/= unknown to the master? - Vinod Kone On June 13, 2013, 7:24 p.m., Thomas Marshall wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/11206/ > ----------------------------------------------------------- > = > (Updated June 13, 2013, 7:24 p.m.) > = > = > Review request for mesos and Benjamin Hindman. > = > = > Description > ------- > = > Previously when we were doing hierarchical allocation by user, we created= and removed user pools for allocation based on what users had frameworks c= urrently running in the cluster. However, with the role abstraction it make= s sense to have more persistence than that, especially once we add weights = - if you set the weight for a role, you want the allocator to remember it e= ven if there aren't any frameworks for that role currently running. > = > So, I decided that it made sense to create a concept of specific roles th= at are allowable in the cluster. With this patch, its only possible to pass= roles in to the master as a command line flag (to ease what I assume will = be the common case - clusters with relatively static sets of roles), but a = future wdrf patch will add http endpoints to add, remove, and update roles. > = > This patch also enforces that frameworks register with valid role (this w= on't affect people who don't care about roles, since there's always the "*"= role, which is the default for frameworks that don't specify a role). > = > = > This addresses bug MESOS-504. > https://issues.apache.org/jira/browse/MESOS-504 > = > = > Diffs > ----- > = > src/master/allocator.hpp 78c75bb = > src/master/flags.hpp f4ce8c1 = > src/master/hierarchical_allocator_process.hpp 1048a28 = > src/master/master.hpp 86c5232 = > src/master/master.cpp 60c6d4f = > src/messages/messages.proto 2c196ee = > src/tests/allocator_tests.cpp 32f0a90 = > src/tests/allocator_zookeeper_tests.cpp 1daaecd = > src/tests/mesos.hpp fca41aa = > src/tests/resource_offers_tests.cpp 3d5f02d = > = > Diff: https://reviews.apache.org/r/11206/diff/ > = > = > Testing > ------- > = > make check > = > = > Thanks, > = > Thomas Marshall > = > --===============8366808899680484429==--