You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules@mesos.apache.org by Shuai Lin <li...@gmail.com> on 2015/05/29 14:46:46 UTC

Looking for suggestions on MESOS-2724

Hi all,

I'm working on https://issues.apache.org/jira/browse/MESOS-2724 (Support
running custom commands on slaves when launcing a docker container), and
would like to get suggestions from you.

Please check my latest comment here
<https://issues.apache.org/jira/browse/MESOS-2724?focusedCommentId=14564911&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14564911>
.

Thanks!

Best Regards,
Shuai Lin

Re: Looking for suggestions on MESOS-2724

Posted by Tim Chen <ti...@mesosphere.io>.
Hi Shuai,

Thanks for your interest in doing this!

The DockerContainerizer *might* have support for Isolators but it's still
in discussion mode how/what that will look like as it's largely depending
on how the Docker engine evolves. Current state of the engine have very
limited ability to add custom isolation logic.

I'll leave more comments on the JIRA.

Tim


On Fri, May 29, 2015 at 10:06 AM, Niklas Nielsen <ni...@mesosphere.io>
wrote:

> (Looping in Tim)
>
> It sounds like we have two options to support your use-case:
>
> 1) Introduce a executorLaunched hook
> 2) Wait until DockerContainerizer supports isolators
>
> (1) Will probably be the quickest, but also a fairly unclean one - as the
> slave doesn't have access to the executor pids directly.
> (2) is probably the right way, but takes more effort. What is your current
> timeframe?
>
> Niklas
>
>
> On 29 May 2015 at 07:46, Shuai Lin <li...@gmail.com> wrote:
>
>> Hi all,
>>
>> I'm working on https://issues.apache.org/jira/browse/MESOS-2724 (Support
>> running custom commands on slaves when launcing a docker container), and
>> would like to get suggestions from you.
>>
>> Please check my latest comment here
>> <
>> https://issues.apache.org/jira/browse/MESOS-2724?focusedCommentId=14564911&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14564911
>> >
>> .
>>
>> Thanks!
>>
>> Best Regards,
>> Shuai Lin
>>
>
>

Re: Looking for suggestions on MESOS-2724

Posted by Shuai Lin <li...@gmail.com>.
I prefer a executorLaunched hook,  if it can be triggered with enough
details of the container as stated in this comment <http://I would rather
prefer a executorLaunched if it can be triggered with details of enough
information of the container. As>.

About my timeframe: I myself doesn't require this feature in my work, so I
have no specific time requirement on this.



Shuai

On Sat, May 30, 2015 at 1:06 AM, Niklas Nielsen <ni...@mesosphere.io>
wrote:

> (Looping in Tim)
>
> It sounds like we have two options to support your use-case:
>
> 1) Introduce a executorLaunched hook
> 2) Wait until DockerContainerizer supports isolators
>
> (1) Will probably be the quickest, but also a fairly unclean one - as the
> slave doesn't have access to the executor pids directly.
> (2) is probably the right way, but takes more effort. What is your current
> timeframe?
>
> Niklas
>
>
> On 29 May 2015 at 07:46, Shuai Lin <li...@gmail.com> wrote:
>
> > Hi all,
> >
> > I'm working on https://issues.apache.org/jira/browse/MESOS-2724 (Support
> > running custom commands on slaves when launcing a docker container), and
> > would like to get suggestions from you.
> >
> > Please check my latest comment here
> > <
> >
> https://issues.apache.org/jira/browse/MESOS-2724?focusedCommentId=14564911&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14564911
> > >
> > .
> >
> > Thanks!
> >
> > Best Regards,
> > Shuai Lin
> >
>

Re: Looking for suggestions on MESOS-2724

Posted by Niklas Nielsen <ni...@mesosphere.io>.
(Looping in Tim)

It sounds like we have two options to support your use-case:

1) Introduce a executorLaunched hook
2) Wait until DockerContainerizer supports isolators

(1) Will probably be the quickest, but also a fairly unclean one - as the
slave doesn't have access to the executor pids directly.
(2) is probably the right way, but takes more effort. What is your current
timeframe?

Niklas


On 29 May 2015 at 07:46, Shuai Lin <li...@gmail.com> wrote:

> Hi all,
>
> I'm working on https://issues.apache.org/jira/browse/MESOS-2724 (Support
> running custom commands on slaves when launcing a docker container), and
> would like to get suggestions from you.
>
> Please check my latest comment here
> <
> https://issues.apache.org/jira/browse/MESOS-2724?focusedCommentId=14564911&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14564911
> >
> .
>
> Thanks!
>
> Best Regards,
> Shuai Lin
>