mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Chhetri <pradeep.chhetr...@gmail.com>
Subject Re: Resource Isolation per Framework
Date Fri, 18 Mar 2016 16:10:28 GMT
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 <haosdent@gmail.com> 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

Mime
View raw message