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
https://github.com/mesosphere/marathon/blob/master/docs/docs/command-line-flags.md
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 <[email protected]> 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

Reply via email to