mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Chen <...@mesosphere.io>
Subject Re: Custom docker executor
Date Sat, 08 Aug 2015 08:11:43 GMT
Hi Kapil,

What kind of pre/post actions do you like to perform?

The community has been contributing hooks that can be performed pre and
post container launch, so like to see what your use cases are
and perhaps the new hooks can satisfy your need, or maybe even some other
way that can already do what you like to achieve.

Tim

On Sat, Aug 8, 2015 at 1:01 AM, Kapil Malik <kmalik@adobe.com> wrote:

> … posting in a fresh thread
>
> Hi,
>
>
>
> We have a usecase to run multi-user workloads on mesos. Users provide
> docker images encapsulating application logic, which we (we = say some
> “Central API”) schedule on Chronos / Marathon. However, we need to run some
> standard pre / post steps for every docker submitted by users. We have
> following options –
>
>
>
> 1.       Ask every user to embed their logic inside a pre-defined docker
> template which will perform pre/post steps.
>
> è This is error prone, makes us dependent on whether the users followed
> template, and not very popular with users either.
>
>
>
> 2.       Extend every user docker (FROM <>) and find a way to add
> pre-post steps in our docker. Refer this docker when scheduling on chronos
> / marathon.
>
> è Building new dockers does not scale as users and applications grow
>
>
>
> 3.       Write a custom executor which will perform the pre-post steps
> and manage the user docker lifetime.
>
> è Deals with user docker lifetime and is obviously complex.
>
>
>
> Is there a standard / openly available DockerExecutor which manages the
> docker lifetime and which I can extend to build my custom executor?
>
> For instance, do you suggest extending
> https://github.com/apache/mesos/blob/master/src/docker/executor.cpp as a
> starting point? Can I access it in Java?
>
>
>
> This way I will be concerned only with my custom logic (pre/post steps)
> and still get benefits of a standard way to manage docker containers.
>
>
>
>
>
> Thanks and regards,
>
>
>
> Kapil Malik | kmalik@adobe.com | 33430 / 8800836581
>
>
>

Mime
View raw message