Return-Path: X-Original-To: apmail-mesos-user-archive@www.apache.org Delivered-To: apmail-mesos-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76C6D18B29 for ; Fri, 18 Mar 2016 16:10:32 +0000 (UTC) Received: (qmail 28960 invoked by uid 500); 18 Mar 2016 16:10:32 -0000 Delivered-To: apmail-mesos-user-archive@mesos.apache.org Received: (qmail 28891 invoked by uid 500); 18 Mar 2016 16:10:31 -0000 Mailing-List: contact user-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mesos.apache.org Delivered-To: mailing list user@mesos.apache.org Received: (qmail 28881 invoked by uid 99); 18 Mar 2016 16:10:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2016 16:10:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7A7551A0095 for ; Fri, 18 Mar 2016 16:10:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.429 X-Spam-Level: * X-Spam-Status: No, score=1.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id cbGzcVqX-7IN for ; Fri, 18 Mar 2016 16:10:30 +0000 (UTC) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id AA0A35F19A for ; Fri, 18 Mar 2016 16:10:29 +0000 (UTC) Received: by mail-lb0-f180.google.com with SMTP id bc4so91742663lbc.2 for ; Fri, 18 Mar 2016 09:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=DPOfMtsUD5bDy2+ppoWvUlcUUIX5bZrQGD8cCLDfVMM=; b=x0wf3Y97dd4jwJ1BEWkj7UuJlPEnwMJr7F5C27GwSNlvLRykTQ6JPTaJsgA1DgH6Ob EDmi8NePlMlcbcuVJuxOXpStGCGlLfV96dZXc1WSS0TCd3Mnoih/+O5PxAvk9wPjhvOr wixZdA8/iAhzjZGdUcTD5QwTPT3pKz4l4FiHG+4PNBBSTCC7lCJ0THt2P+7vE7qo0QOO RpMJCpAiFsu3h+6ie0bUrYMEIzrurI+qi81ElwYTdONkOkZdYvPwXZFYlJg26KgzNWwA OQZbDXCVPVKWAimD7UjXc0AH1nUeIQXOjvna3u7y+g2M6Xa+6f8b4ts83ksOzzR4ugkY If+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=DPOfMtsUD5bDy2+ppoWvUlcUUIX5bZrQGD8cCLDfVMM=; b=lJFXoIdCNBGSBDZgkz3TkmLGGLShuveK62I5X+8TiTLBIJTzsoj5fOLrQSAGiNWtrH Un2DpSux+nHfDMwP5gVuSXxupoP09Y4X0HGdRxdVhOla1l8/A9vA1GTczbkNLinmkhq+ QwD7P8+34t5mYaWQEaIlJx1DvkqXR4mxq5LfWYAo9R+NKcJ1cxvN/MnMMxSrwiDDLtch ekojb9NXtimlfaem1qJHThroBY9H0kiNWzpMibaWjowSfsEAcik9eytIqOYOAx51AmMD f6eb13LMTtwHFhobx5S5yvNBIENK9/Nrhn5/DSXplq3GNreRPST9ra7tCSPZFAmQCgEo ICsg== X-Gm-Message-State: AD7BkJKM3PbuCIyBkkRyYqs1W6cJhM8I1bvM7FhIbp8KIM2MxUcrVhL8rM2a+Bb9oNx3RZuzr1NDTCcL9SjGnw== MIME-Version: 1.0 X-Received: by 10.112.151.207 with SMTP id us15mr5208515lbb.28.1458317428413; Fri, 18 Mar 2016 09:10:28 -0700 (PDT) Received: by 10.112.184.80 with HTTP; Fri, 18 Mar 2016 09:10:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Mar 2016 16:10:28 +0000 Message-ID: Subject: Re: Resource Isolation per Framework From: Pradeep Chhetri To: user@mesos.apache.org Content-Type: multipart/alternative; boundary=047d7b8744da4a5bc1052e54fc99 --047d7b8744da4a5bc1052e54fc99 Content-Type: text/plain; charset=UTF-8 Hello haosdent, Perfect, then i guess that should solve my issue. I will configure things and see if it is working as expected or not. Cheers. On Fri, Mar 18, 2016 at 3:20 PM, haosdent wrote: > Seems common is not necessary in your case. The resources without role > would share cross all frameworks. > > On Fri, Mar 18, 2016 at 9:43 PM, Pradeep Chhetri < > pradeep.chhetri89@gmail.com> wrote: > >> Hello All, >> >> I am looking for ways to isolate resources per framework basis. Basically >> what i want to achieve is segregating machines on which tasks from a >> framework can run and having a common set of machines which can be shared >> across all frameworks. So I can think of assigning one role per framework >> and one role as common for all frameworks. In my case, I will be having >> roles: marathon, storm, jenkins, spark & common. >> >> From Roles & ACLs documentation: I can see that I can assign these roles >> to mesos agents and define ACLs to allow frameworks to register with mesos >> master with particular roles. >> >> I have few questions: >> >> 1. Can I configure a mesos agent to be associated with multiple roles. I >> can see that there is a parameter --default-role to assign role to a mesos >> slave but I am not sure whether we can pass multiple roles as value. >> >> 2. From ACL documentation, I can provide authorization to a framework so >> that it can register with multiple roles like this: >> >> >> 1. >> >> { >> "register_frameworks": [ >> { >> "principals": { >> "values": ["marathon"] >> }, >> "roles": { >> "values": ["marathon", "common"] >> } >> } >> ] >> } >> >> >> >> But I don't think if we can register a framework to mesos master with >> multiple roles. I can see this open issue regarding this: >> https://issues.apache.org/jira/browse/MESOS-1763 >> >> Can someone provide me some alternative way regarding what i am trying to >> achieve. >> >> -- >> Regards, >> Pradeep Chhetri >> > > > > -- > Best Regards, > Haosdent Huang > -- Regards, Pradeep Chhetri --047d7b8744da4a5bc1052e54fc99 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello haosdent,

Perfect, then i guess t= hat should solve my issue. I will configure things and see if it is working= as expected or not.

Cheers.

On Fri, Mar 18, 2016 at 3:2= 0 PM, haosdent <haosdent@gmail.com> wrote:
Seems common is not necessary in your ca= se. The resources without role would share cross all frameworks.

On Fri, Mar 18, 2016 at 9:43 PM, Pradeep Chhetri <pradeep.chhet= ri89@gmail.com> wrote:
Hello All,

I am looking for ways to isolate= resources per framework basis. Basically what i want to achieve is segrega= ting machines on which tasks from a framework can run and having a common s= et of machines which can be shared across all frameworks. So I can think of= assigning one role per framework and one role as common for all frameworks= . In my case, I will be having roles: marathon, storm, jenkins, spark &= common.

From Roles & ACLs documentation: I ca= n see that I can assign these roles to mesos agents and define ACLs to allo= w frameworks to register with mesos master with particular roles.

I have few questions:

1. Can = I configure a mesos agent to be associated with multiple roles. I can see t= hat there is a parameter --default-role to assign role to a mesos slave but= I am not sure whether we can pass multiple roles as value.

<= /div>
2. From ACL documentation, I can provide authorization to a frame= work so that it can register with multiple roles like this:

<= /div>
  1.  {
       "register_frameworks": [
                                {
                                  "principals": {
                                    "values": ["marathon"]
                                  },
                                  "roles": {
                                    "values": ["marathon", =
    "common"]
                                  }
                                }
                              ]
     }
=C2=A0
But I don't think if we = can register a framework to mesos master with multiple roles. I can see thi= s open issue regarding this:=C2=A0https://issues.apache.org/jira/browse= /MESOS-1763=C2=A0

Can someone provide me some = alternative way regarding what i am trying to achieve.=C2=A0

=
--
Regards,
Pradeep Ch= hetri



--
Best Regards,
H= aosdent Huang



--
Regards,
Pradeep Chhetri<= /div>
--047d7b8744da4a5bc1052e54fc99--