mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Anderegg <timothy.ander...@gmail.com>
Subject Re: Conceptual question Task Container
Date Mon, 27 Jun 2016 14:00:26 GMT
The same is true with all frameworks I've used, such as Marathon - each
executor manages one task (although it can have multiple "runs").

On Mon, Jun 27, 2016 at 9:49 AM haosdent <haosdent@gmail.com> wrote:

> Hi, @Dave If you use mesos-executor or mesos-docker-executor. It only would
> launch one Task during executor lifecycle, so your problem does not exist.
>
> On Mon, Jun 27, 2016 at 5:38 PM, Dave Webb <Dave.Webb@gmx.de> wrote:
>
> > Hi,
> >
> > I'm currently familiarizing myself with the Mesos source code and have a
> > conceptual question about executors, tasks and the containerizer.
> > Basically, each executor gets its own container (and thus its own cgroup
> > subtree ".../mesos/executor0" when using cgroup isolation). This achieves
> > isolation between different executors.
> >
> > However, all Tasks which are eligible for the same executor, are just
> > assigned to it and the corresponding executor is "enlarged".
> > Yet, the individual tasks do not get their own container (and therefore
> no
> > cgroup subtree ".../mesos/executor0/task0" is created).
> >
> > From my understanding, this behavior implies that tasks within the same
> > executor are not isolated at all (at least when using cgroups).
> > Also when implementing your own executor, the API does not offer the
> > possibility to create individual containers for tasks.
> >
> > I find this quite inconsistent:
> > Tasks contain information about their assigned resources, but this
> > information has different meaning depending on the executors.
> > If a task has its own executor, its resources are isolated. But if there
> > are multiple tasks within one executor, the sum of all resources is
> shared
> > within these tasks.
> >
> > Have I missed anything or why was this behavior chosen?
> > Wouldn't it be more consistent if resource were assigned to executors
> > instead of tasks?
> >
> > Thank you very much!
> > Dave
> >
>
>
>
> --
> Best Regards,
> Haosdent Huang
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message