mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Ma <>
Subject Re: limiting nodes to specific frameworks
Date Wed, 24 Feb 2016 14:57:07 GMT
Static reservation feature will help; but there's a limitation that
Marathon can only manage resources from one role.
For example, if we use static reservation for two resources group "master"
(--resources="cpus(master):16") & "agent" (--resources="cpus(agent):16"),
Marathon (--mesos_roles="master" or --mesos_roles="agent") can only get
resources from one of them: "master" or "agent".

There's EPIC to support multiple roles in Mesos (MESOS-1763).

Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer
Platform OpenSource Technology, STG, IBM GCG
+86-10-8245 4084 | |

On Wed, Feb 24, 2016 at 10:21 PM, Guangya Liu <> wrote:

> You can use static reservation to make your marathon framework running on
> a specified node, the steps are as following, 0.24 do not support implicit
> role, so you need to restart master to add role flags.
> 1) Restart mesos master with role flags, such as --roles=marathon
> 2) Start up agent on master node with static reservation, such as
> --resources="cpus(marathon):16;mem(marathon):24576
> 3) Start marathon with a role flag: --mesos_roles=marathon, refer to
> for detail.
> Then you can see that your marathon framework will be starting on the node
> with static reservation, hope this helps.
> Thanks,
> Gaungya
> On Wed, Feb 24, 2016 at 9:41 PM, Clarke, Trevor <> wrote:
>> I've got a custom framework running in mesos (0.24.1 for now). It
>> supports failover and I'd like to be able to start the framework daemons
>> (scheduler, etc.) from Marathon so I can automatically handle scaling and
>> restart. I'm running a small cluster where the mesos master is also the
>> primary master for zookeeper, marathon, my framework, and other support
>> daemons. I've got a small backup master and want to allow failover to slave
>> nodes as needed.
>> My question, can I run the mesos slave on the master node but restrict it
>> to the Marathon framework only so it won't show up in my framework? Or do I
>> need to run a separate set of mesos daemons to do that? Are there other
>> ways to handle this sort of setup?
>> ----------------------
>> Trevor R.H. Clarke
>> Software Engineer, Ball Aerospace
>> (937)320-7087
>> This message and any enclosures are intended only for the addressee.
>> Please
>> notify the sender by email if you are not the intended recipient.  If you
>> are
>> not the intended recipient, you may not use, copy, disclose, or
>> distribute this
>> message or its contents or enclosures to any other person and any such
>> actions
>> may be unlawful.  Ball reserves the right to monitor and review all
>> messages
>> and enclosures sent to or from this email address.
> --
> Guangya Liu (刘光亚)
> Senior Software Engineer
> DCOS and OpenStack Development
> IBM Platform Computing
> Systems and Technology Group

View raw message