You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Raymond Mancy <rm...@redhat.com> on 2014/05/30 09:18:29 UTC
Mesos with non clustered environment.
Hi,
I've been reading up a bit on Mesos, and I'm interested in the possibility of using it as
the scheduler for Beaker[2]. I would guess Beaker is not your typical candidate framework for Mesos.
Beaker manages a pool of hardware, but they are not clustered. They are all individual
test systems (equivalent to a Mesos 'slave' I guess). Each job that Beaker runs requires
a whole slave for itself at a minimum, or even multiple slaves. It cannot deal in slices
of resources spread across one or more machines. It's just not the kind of work that it does.
So why Mesos? Because scheduling is hard. Beaker currently does its own scheduling but it is
relatively rudimentary. We would like to take advantage of more efficient and complex scheduling
algorithms, but we don't want to have to implement them. AFAICT, Mesos should be able to handle
what we want. Most of the schedulers I've seen are designed around clusters, so
getting Beaker to work with them looks like needing a bit of a shoe horn in some way or another.
I've been reading this document recently[1], and it leaves me with a couple of questions.
It refers to 'mandatory' and 'preferred' resources, and then goes on to say:
"A resource is mandatory if a framework must acquire it in order to run.
For example, a graphical processor unit (GPU) is mandatory if a
frame-work cannot run without access to GPU. In contrast, a re-source is
preferred if a framework performs “better” us-ing it, but can also run
using another equivalent resource"
It specifically is talking about resource requirements at the framework level.
What if some tasks in the one framework require a GPU and others do not ?
The kind of resources that tasks from Beaker require are not at all homogeneous.
So while one task may require a GPU, the other may require instead a specific SCSI card.
I like the idea of the 'elastic' vs 'rigid' job, but I have some Q's about it as well.
"Mesos has the idea of rigid and elastic frameworks. Rigid framework
requires that all slots are allocated before it can begin."
Can you have some tasks be rigid though and some other not? Or is it strictly at the framework
level. I'm thinking of the case where task A, B and C are rigid and co-dependent
on each other, D and E are rigid and dependent on each-other, but task F is elastic.
If this is not possible, perhaps Beaker could also present A, B, and C as a single task, but require
three 'slots'. Maybe.
Cheers,
Raymond
1 http://mesos.berkeley.edu/mesos_tech_report.pdf
2 https://beaker-project.org/
Re: Mesos with non clustered environment.
Posted by Vinod Kone <vi...@gmail.com>.
Hey Raymond,
Glad to hear that you are interested in Mesos. Please see my answers inline.
It specifically is talking about resource requirements at the framework
> level.
> What if some tasks in the one framework require a GPU and others do not ?
> The kind of resources that tasks from Beaker require are not at all
> homogeneous.
> So while one task may require a GPU, the other may require instead a
> specific SCSI card.
>
>
Non-homogenous task requirements for a framework are definitely ok/expected
in the Mesos world.
The resources that each slave offers can be set by the operator as command
line flags (--resources) on the slaves.
It is up to the framework to chose among the resources offered according to
its tasks' requirements.
> Can you have some tasks be rigid though and some other not? Or is it
> strictly at the framework
> level. I'm thinking of the case where task A, B and C are rigid and
> co-dependent
> on each other, D and E are rigid and dependent on each-other, but task F
> is elastic.
> If this is not possible, perhaps Beaker could also present A, B, and C as
> a single task, but require
> three 'slots'. Maybe.
>
>
Not sure what your "rigid and co-dependent" requirements are, but if they
have to be running on the same slave and need a strict ordering it would be
better to wrap them in a single task and explicitly control their
lifecycle. If the rigidity is more in the sense of all 3 tasks need to be
run (on different hosts) or not, the framework can hold on to enough
resource offer slots before scheduling all 3 tasks. The caveat here is that
a framework holding on to offers doesn't play nicely with DRF and might
starve other frameworks in the cluster.