You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Aaron Carey <ac...@ilm.com> on 2015/07/28 14:08:02 UTC
Custom executor
Hi,
Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
RE: Custom executor
Posted by Aaron Carey <ac...@ilm.com>.
Hi All,
haosdent says that using a custom executor in Chronos and Marathon would require changing their code, but Sargun Dhilon suggests that this isn't necessary..
Anyone know which is correct? Perhaps with an example?
Thanks!
Aaron
________________________________
From: haosdent [haosdent@gmail.com]
Sent: 28 July 2015 17:28
To: user@mesos.apache.org
Subject: Re: Custom executor
Hi, @Araon If you want to develop your custom framework, you could checkout this document https://github.com/apache/mesos/blob/master/docs/app-framework-development-guide.md first.
> I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible?
If you want to write a executor used in Marathon/Chronos, you need change their code. I think this is difficult and not suggest.
> Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Yes, could use different languages for different components. Just need implement the interfaces and make sure the executor could run in slaves.
On Tue, Jul 28, 2015 at 8:08 PM, Aaron Carey <ac...@ilm.com>> wrote:
Hi,
Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
--
Best Regards,
Haosdent Huang
Re: Custom executor
Posted by haosdent <ha...@gmail.com>.
Hi, @Araon If you want to develop your custom framework, you could checkout
this document
https://github.com/apache/mesos/blob/master/docs/app-framework-development-guide.md
first.
> I want to be able to write a custom executor which is available to
multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is
this possible?
If you want to write a executor used in Marathon/Chronos, you need change
their code. I think this is difficult and not suggest.
> Is it possible to mix and match languages for schedulers and executors?
(ie one is python one is C++)
Yes, could use different languages for different components. Just need
implement the interfaces and make sure the executor could run in slaves.
On Tue, Jul 28, 2015 at 8:08 PM, Aaron Carey <ac...@ilm.com> wrote:
> Hi,
>
> Is it possible to build a custom executor which is not associated with a
> particular scheduler framework? I want to be able to write a custom
> executor which is available to multiple schedulers (eg Marathon, Chronos
> and our own custom scheduler). Is this possible? I couldn't quite figure
> out the best way to go about this from the docs? Is it possible to mix and
> match languages for schedulers and executors? (ie one is python one is C++)
>
> Thanks,
> Aaron
>
--
Best Regards,
Haosdent Huang
Re: Custom executor
Posted by Sargun Dhillon <sa...@sargun.me>.
Yes. You can mix and match languages. In fact, a major Mesos framework does
this - Aurora. It's scheduler is written in Java and its executor is
written in Python. I've experimented myself in writing the scheduler in
Golang and executor in Erlang.
In addition to this, making your executor accessible to multiple frameworks
is as simple as multiple frameworks referring to that executor in TaskInfo
at launch time.
Sent from my iPhone
On Jul 28, 2015, at 05:08, Aaron Carey <ac...@ilm.com> wrote:
Hi,
Is it possible to build a custom executor which is not associated with a
particular scheduler framework? I want to be able to write a custom
executor which is available to multiple schedulers (eg Marathon, Chronos
and our own custom scheduler). Is this possible? I couldn't quite figure
out the best way to go about this from the docs? Is it possible to mix and
match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
Re: Custom executor
Posted by Vinod Kone <vi...@gmail.com>.
To clarify, if you didn't already know, your custom executor should
implement the Mesos executor interface.
On Wed, Jul 29, 2015 at 10:05 AM, Ondrej Smola <on...@gmail.com>
wrote:
> As Connor already mentioned you can use URL for your artifact/app - there
> is whole REST API - artifact store - for working with artifacts - look at
>
> https://mesosphere.github.io/marathon/docs/artifact-store.html
>
> 2015-07-29 18:47 GMT+02:00 Connor Doyle <co...@mesosphere.io>:
>
>> In Marathon the executor ID is unique every time, so tasks and executors
>> will be in 1:1 correspondence. More generally, if you re-use the executor
>> info message when launching tasks, a single executor can handle multiple
>> tasks simultaneously.
>>
>> On Jul 29, 2015, at 09:43, Aaron Carey <ac...@ilm.com> wrote:
>>
>> ah cool! Will that run as one instance per task, or one scheduler per
>> slave?
>>
>>
>> ------------------------------
>> *From:* Connor Doyle [connor.p.d@gmail.com]
>> *Sent:* 29 July 2015 17:24
>> *To:* user@mesos.apache.org
>> *Subject:* Re: Custom executor
>>
>> You don't even have to pre-load the executor on the slave boxes --
>> just add it as a URL and it will be downloaded to the sandbox like any
>> other resource!
>>
>> On Jul 29, 2015, at 02:47, Aaron Carey <ac...@ilm.com> wrote:
>>
>> Ah I see.. so is it simply a case of making the executor file
>> executable, putting it on the slave, and supplying the path to it in the
>> JSON?
>>
>> Thanks!
>>
>> Aaron
>>
>> ------------------------------
>> *From:* Ondrej Smola [ondrej.smola@gmail.com]
>> *Sent:* 29 July 2015 10:13
>> *To:* user@mesos.apache.org
>> *Subject:* Re: Custom executor
>>
>> Hi Aaron,
>>
>> custom executor should be supported by Marathon - i dont use it but from
>> tests in
>>
>>
>> https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
>>
>> there is a option to specify path to custom executor.
>>
>> https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
>>
>> in task definition there is "executor" json prop
>>
>> Chronos also supports this property
>>
>>
>> Download/create some simple executor and try to test it.
>>
>>
>>
>>
>> 2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>:
>>
>>> Hi Tim,
>>>
>>> We have some specific requirements for moving data around when executing
>>> tasks on slaves, I want to be able to 'check out' a selection of files, and
>>> possibly mount filesystems onto the slave (and subsequently into the
>>> executing docker container). The data required by each task is specified in
>>> our database.
>>>
>>> Basically I wanted to customise an executor to prepare the data on the
>>> slave before executing the docker container, rather than having to get the
>>> container to download its own data or attempt to mount NFS volumes itself.
>>>
>>> I hope that all makes sense, I couldn't find a simple solution to this
>>> using the existing architecture.. I'd love to know your thoughts though!
>>>
>>> Thanks,
>>> Aaron
>>>
>>> ------------------------------
>>> *From:* Tim Chen [tim@mesosphere.io]
>>> *Sent:* 28 July 2015 19:01
>>> *To:* user@mesos.apache.org
>>> *Subject:* Re: Custom executor
>>>
>>> Can you explain what your motivations are and what your new custom
>>> executor will do?
>>>
>>> Tim
>>>
>>> On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is it possible to build a custom executor which is not associated with
>>>> a particular scheduler framework? I want to be able to write a custom
>>>> executor which is available to multiple schedulers (eg Marathon, Chronos
>>>> and our own custom scheduler). Is this possible? I couldn't quite figure
>>>> out the best way to go about this from the docs? Is it possible to mix and
>>>> match languages for schedulers and executors? (ie one is python one is C++)
>>>>
>>>> Thanks,
>>>> Aaron
>>>>
>>>
>>>
>>
>
Re: Custom executor
Posted by Ondrej Smola <on...@gmail.com>.
As Connor already mentioned you can use URL for your artifact/app - there
is whole REST API - artifact store - for working with artifacts - look at
https://mesosphere.github.io/marathon/docs/artifact-store.html
2015-07-29 18:47 GMT+02:00 Connor Doyle <co...@mesosphere.io>:
> In Marathon the executor ID is unique every time, so tasks and executors
> will be in 1:1 correspondence. More generally, if you re-use the executor
> info message when launching tasks, a single executor can handle multiple
> tasks simultaneously.
>
> On Jul 29, 2015, at 09:43, Aaron Carey <ac...@ilm.com> wrote:
>
> ah cool! Will that run as one instance per task, or one scheduler per
> slave?
>
>
> ------------------------------
> *From:* Connor Doyle [connor.p.d@gmail.com]
> *Sent:* 29 July 2015 17:24
> *To:* user@mesos.apache.org
> *Subject:* Re: Custom executor
>
> You don't even have to pre-load the executor on the slave boxes -- just
> add it as a URL and it will be downloaded to the sandbox like any other
> resource!
>
> On Jul 29, 2015, at 02:47, Aaron Carey <ac...@ilm.com> wrote:
>
> Ah I see.. so is it simply a case of making the executor file
> executable, putting it on the slave, and supplying the path to it in the
> JSON?
>
> Thanks!
>
> Aaron
>
> ------------------------------
> *From:* Ondrej Smola [ondrej.smola@gmail.com]
> *Sent:* 29 July 2015 10:13
> *To:* user@mesos.apache.org
> *Subject:* Re: Custom executor
>
> Hi Aaron,
>
> custom executor should be supported by Marathon - i dont use it but from
> tests in
>
>
> https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
>
> there is a option to specify path to custom executor.
>
> https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
>
> in task definition there is "executor" json prop
>
> Chronos also supports this property
>
>
> Download/create some simple executor and try to test it.
>
>
>
>
> 2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>:
>
>> Hi Tim,
>>
>> We have some specific requirements for moving data around when executing
>> tasks on slaves, I want to be able to 'check out' a selection of files, and
>> possibly mount filesystems onto the slave (and subsequently into the
>> executing docker container). The data required by each task is specified in
>> our database.
>>
>> Basically I wanted to customise an executor to prepare the data on the
>> slave before executing the docker container, rather than having to get the
>> container to download its own data or attempt to mount NFS volumes itself.
>>
>> I hope that all makes sense, I couldn't find a simple solution to this
>> using the existing architecture.. I'd love to know your thoughts though!
>>
>> Thanks,
>> Aaron
>>
>> ------------------------------
>> *From:* Tim Chen [tim@mesosphere.io]
>> *Sent:* 28 July 2015 19:01
>> *To:* user@mesos.apache.org
>> *Subject:* Re: Custom executor
>>
>> Can you explain what your motivations are and what your new custom
>> executor will do?
>>
>> Tim
>>
>> On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
>>
>>> Hi,
>>>
>>> Is it possible to build a custom executor which is not associated with a
>>> particular scheduler framework? I want to be able to write a custom
>>> executor which is available to multiple schedulers (eg Marathon, Chronos
>>> and our own custom scheduler). Is this possible? I couldn't quite figure
>>> out the best way to go about this from the docs? Is it possible to mix and
>>> match languages for schedulers and executors? (ie one is python one is C++)
>>>
>>> Thanks,
>>> Aaron
>>>
>>
>>
>
Re: Custom executor
Posted by Connor Doyle <co...@mesosphere.io>.
In Marathon the executor ID is unique every time, so tasks and executors will be in 1:1 correspondence. More generally, if you re-use the executor info message when launching tasks, a single executor can handle multiple tasks simultaneously.
> On Jul 29, 2015, at 09:43, Aaron Carey <ac...@ilm.com> wrote:
>
> ah cool! Will that run as one instance per task, or one scheduler per slave?
>
>
> From: Connor Doyle [connor.p.d@gmail.com]
> Sent: 29 July 2015 17:24
> To: user@mesos.apache.org
> Subject: Re: Custom executor
>
> You don't even have to pre-load the executor on the slave boxes -- just add it as a URL and it will be downloaded to the sandbox like any other resource!
>
> On Jul 29, 2015, at 02:47, Aaron Carey <ac...@ilm.com> wrote:
>
>> Ah I see.. so is it simply a case of making the executor file executable, putting it on the slave, and supplying the path to it in the JSON?
>>
>> Thanks!
>>
>> Aaron
>>
>> From: Ondrej Smola [ondrej.smola@gmail.com]
>> Sent: 29 July 2015 10:13
>> To: user@mesos.apache.org
>> Subject: Re: Custom executor
>>
>> Hi Aaron,
>>
>> custom executor should be supported by Marathon - i dont use it but from tests in
>>
>> https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
>>
>> there is a option to specify path to custom executor.
>>
>> https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
>>
>> in task definition there is "executor" json prop
>>
>> Chronos also supports this property
>>
>>
>> Download/create some simple executor and try to test it.
>>
>>
>>
>>
>> 2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>:
>>> Hi Tim,
>>>
>>> We have some specific requirements for moving data around when executing tasks on slaves, I want to be able to 'check out' a selection of files, and possibly mount filesystems onto the slave (and subsequently into the executing docker container). The data required by each task is specified in our database.
>>>
>>> Basically I wanted to customise an executor to prepare the data on the slave before executing the docker container, rather than having to get the container to download its own data or attempt to mount NFS volumes itself.
>>>
>>> I hope that all makes sense, I couldn't find a simple solution to this using the existing architecture.. I'd love to know your thoughts though!
>>>
>>> Thanks,
>>> Aaron
>>>
>>> From: Tim Chen [tim@mesosphere.io]
>>> Sent: 28 July 2015 19:01
>>> To: user@mesos.apache.org
>>> Subject: Re: Custom executor
>>>
>>> Can you explain what your motivations are and what your new custom executor will do?
>>>
>>> Tim
>>>
>>>> On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
>>>> Hi,
>>>>
>>>> Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
>>>>
>>>> Thanks,
>>>> Aaron
RE: Custom executor
Posted by Aaron Carey <ac...@ilm.com>.
ah cool! Will that run as one instance per task, or one scheduler per slave?
________________________________
From: Connor Doyle [connor.p.d@gmail.com]
Sent: 29 July 2015 17:24
To: user@mesos.apache.org
Subject: Re: Custom executor
You don't even have to pre-load the executor on the slave boxes -- just add it as a URL and it will be downloaded to the sandbox like any other resource!
On Jul 29, 2015, at 02:47, Aaron Carey <ac...@ilm.com>> wrote:
Ah I see.. so is it simply a case of making the executor file executable, putting it on the slave, and supplying the path to it in the JSON?
Thanks!
Aaron
________________________________
From: Ondrej Smola [ondrej.smola@gmail.com<ma...@gmail.com>]
Sent: 29 July 2015 10:13
To: user@mesos.apache.org<ma...@mesos.apache.org>
Subject: Re: Custom executor
Hi Aaron,
custom executor should be supported by Marathon - i dont use it but from tests in
https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
there is a option to specify path to custom executor.
https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
in task definition there is "executor" json prop
Chronos also supports this property
Download/create some simple executor and try to test it.
2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>>:
Hi Tim,
We have some specific requirements for moving data around when executing tasks on slaves, I want to be able to 'check out' a selection of files, and possibly mount filesystems onto the slave (and subsequently into the executing docker container). The data required by each task is specified in our database.
Basically I wanted to customise an executor to prepare the data on the slave before executing the docker container, rather than having to get the container to download its own data or attempt to mount NFS volumes itself.
I hope that all makes sense, I couldn't find a simple solution to this using the existing architecture.. I'd love to know your thoughts though!
Thanks,
Aaron
________________________________
From: Tim Chen [tim@mesosphere.io<ma...@mesosphere.io>]
Sent: 28 July 2015 19:01
To: user@mesos.apache.org<ma...@mesos.apache.org>
Subject: Re: Custom executor
Can you explain what your motivations are and what your new custom executor will do?
Tim
On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com>> wrote:
Hi,
Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
Re: Custom executor
Posted by Connor Doyle <co...@gmail.com>.
You don't even have to pre-load the executor on the slave boxes -- just add it as a URL and it will be downloaded to the sandbox like any other resource!
> On Jul 29, 2015, at 02:47, Aaron Carey <ac...@ilm.com> wrote:
>
> Ah I see.. so is it simply a case of making the executor file executable, putting it on the slave, and supplying the path to it in the JSON?
>
> Thanks!
>
> Aaron
>
> From: Ondrej Smola [ondrej.smola@gmail.com]
> Sent: 29 July 2015 10:13
> To: user@mesos.apache.org
> Subject: Re: Custom executor
>
> Hi Aaron,
>
> custom executor should be supported by Marathon - i dont use it but from tests in
>
> https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
>
> there is a option to specify path to custom executor.
>
> https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
>
> in task definition there is "executor" json prop
>
> Chronos also supports this property
>
>
> Download/create some simple executor and try to test it.
>
>
>
>
> 2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>:
>> Hi Tim,
>>
>> We have some specific requirements for moving data around when executing tasks on slaves, I want to be able to 'check out' a selection of files, and possibly mount filesystems onto the slave (and subsequently into the executing docker container). The data required by each task is specified in our database.
>>
>> Basically I wanted to customise an executor to prepare the data on the slave before executing the docker container, rather than having to get the container to download its own data or attempt to mount NFS volumes itself.
>>
>> I hope that all makes sense, I couldn't find a simple solution to this using the existing architecture.. I'd love to know your thoughts though!
>>
>> Thanks,
>> Aaron
>>
>> From: Tim Chen [tim@mesosphere.io]
>> Sent: 28 July 2015 19:01
>> To: user@mesos.apache.org
>> Subject: Re: Custom executor
>>
>> Can you explain what your motivations are and what your new custom executor will do?
>>
>> Tim
>>
>>> On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
>>> Hi,
>>>
>>> Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
>>>
>>> Thanks,
>>> Aaron
>
RE: Custom executor
Posted by Aaron Carey <ac...@ilm.com>.
Many thanks! :)
________________________________
From: haosdent [haosdent@gmail.com]
Sent: 29 July 2015 15:21
To: user@mesos.apache.org
Subject: Re: Custom executor
Hi, @Aaron Sorry the incorrect conclusion about executor in Marathon, Chronos. According this link http://stackoverflow.com/questions/17466204/scheduling-a-custom-mesos-executor-with-airbnb-chronos-rest-api and this link https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L247-L251 The answer of "
making the executor file executable, putting it on the slave, and supplying the path to it in the JSON" is yes.
On Wed, Jul 29, 2015 at 5:47 PM, Aaron Carey <ac...@ilm.com>> wrote:
Ah I see.. so is it simply a case of making the executor file executable, putting it on the slave, and supplying the path to it in the JSON?
Thanks!
Aaron
________________________________
From: Ondrej Smola [ondrej.smola@gmail.com<ma...@gmail.com>]
Sent: 29 July 2015 10:13
To: user@mesos.apache.org<ma...@mesos.apache.org>
Subject: Re: Custom executor
Hi Aaron,
custom executor should be supported by Marathon - i dont use it but from tests in
https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
there is a option to specify path to custom executor.
https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
in task definition there is "executor" json prop
Chronos also supports this property
Download/create some simple executor and try to test it.
2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>>:
Hi Tim,
We have some specific requirements for moving data around when executing tasks on slaves, I want to be able to 'check out' a selection of files, and possibly mount filesystems onto the slave (and subsequently into the executing docker container). The data required by each task is specified in our database.
Basically I wanted to customise an executor to prepare the data on the slave before executing the docker container, rather than having to get the container to download its own data or attempt to mount NFS volumes itself.
I hope that all makes sense, I couldn't find a simple solution to this using the existing architecture.. I'd love to know your thoughts though!
Thanks,
Aaron
________________________________
From: Tim Chen [tim@mesosphere.io<ma...@mesosphere.io>]
Sent: 28 July 2015 19:01
To: user@mesos.apache.org<ma...@mesos.apache.org>
Subject: Re: Custom executor
Can you explain what your motivations are and what your new custom executor will do?
Tim
On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com>> wrote:
Hi,
Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
--
Best Regards,
Haosdent Huang
Re: Custom executor
Posted by haosdent <ha...@gmail.com>.
Hi, @Aaron Sorry the incorrect conclusion about executor in Marathon,
Chronos. According this link
http://stackoverflow.com/questions/17466204/scheduling-a-custom-mesos-executor-with-airbnb-chronos-rest-api
and this link
https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L247-L251
The answer of "
making the executor file executable, putting it on the slave, and supplying
the path to it in the JSON" is yes.
On Wed, Jul 29, 2015 at 5:47 PM, Aaron Carey <ac...@ilm.com> wrote:
> Ah I see.. so is it simply a case of making the executor file
> executable, putting it on the slave, and supplying the path to it in the
> JSON?
>
> Thanks!
>
> Aaron
>
> ------------------------------
> *From:* Ondrej Smola [ondrej.smola@gmail.com]
> *Sent:* 29 July 2015 10:13
>
> *To:* user@mesos.apache.org
> *Subject:* Re: Custom executor
>
> Hi Aaron,
>
> custom executor should be supported by Marathon - i dont use it but from
> tests in
>
>
> https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
>
> there is a option to specify path to custom executor.
>
> https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
>
> in task definition there is "executor" json prop
>
> Chronos also supports this property
>
>
> Download/create some simple executor and try to test it.
>
>
>
>
> 2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>:
>
>> Hi Tim,
>>
>> We have some specific requirements for moving data around when executing
>> tasks on slaves, I want to be able to 'check out' a selection of files, and
>> possibly mount filesystems onto the slave (and subsequently into the
>> executing docker container). The data required by each task is specified in
>> our database.
>>
>> Basically I wanted to customise an executor to prepare the data on the
>> slave before executing the docker container, rather than having to get the
>> container to download its own data or attempt to mount NFS volumes itself.
>>
>> I hope that all makes sense, I couldn't find a simple solution to this
>> using the existing architecture.. I'd love to know your thoughts though!
>>
>> Thanks,
>> Aaron
>>
>> ------------------------------
>> *From:* Tim Chen [tim@mesosphere.io]
>> *Sent:* 28 July 2015 19:01
>> *To:* user@mesos.apache.org
>> *Subject:* Re: Custom executor
>>
>> Can you explain what your motivations are and what your new custom
>> executor will do?
>>
>> Tim
>>
>> On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
>>
>>> Hi,
>>>
>>> Is it possible to build a custom executor which is not associated with a
>>> particular scheduler framework? I want to be able to write a custom
>>> executor which is available to multiple schedulers (eg Marathon, Chronos
>>> and our own custom scheduler). Is this possible? I couldn't quite figure
>>> out the best way to go about this from the docs? Is it possible to mix and
>>> match languages for schedulers and executors? (ie one is python one is C++)
>>>
>>> Thanks,
>>> Aaron
>>>
>>
>>
>
--
Best Regards,
Haosdent Huang
RE: Custom executor
Posted by Aaron Carey <ac...@ilm.com>.
Ah I see.. so is it simply a case of making the executor file executable, putting it on the slave, and supplying the path to it in the JSON?
Thanks!
Aaron
________________________________
From: Ondrej Smola [ondrej.smola@gmail.com]
Sent: 29 July 2015 10:13
To: user@mesos.apache.org
Subject: Re: Custom executor
Hi Aaron,
custom executor should be supported by Marathon - i dont use it but from tests in
https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
there is a option to specify path to custom executor.
https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
in task definition there is "executor" json prop
Chronos also supports this property
Download/create some simple executor and try to test it.
2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>>:
Hi Tim,
We have some specific requirements for moving data around when executing tasks on slaves, I want to be able to 'check out' a selection of files, and possibly mount filesystems onto the slave (and subsequently into the executing docker container). The data required by each task is specified in our database.
Basically I wanted to customise an executor to prepare the data on the slave before executing the docker container, rather than having to get the container to download its own data or attempt to mount NFS volumes itself.
I hope that all makes sense, I couldn't find a simple solution to this using the existing architecture.. I'd love to know your thoughts though!
Thanks,
Aaron
________________________________
From: Tim Chen [tim@mesosphere.io<ma...@mesosphere.io>]
Sent: 28 July 2015 19:01
To: user@mesos.apache.org<ma...@mesos.apache.org>
Subject: Re: Custom executor
Can you explain what your motivations are and what your new custom executor will do?
Tim
On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com>> wrote:
Hi,
Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
Re: Custom executor
Posted by Ondrej Smola <on...@gmail.com>.
Hi Aaron,
custom executor should be supported by Marathon - i dont use it but from
tests in
https://github.com/mesosphere/marathon/blob/master/src/test/scala/mesosphere/mesos/TaskBuilderTest.scala#L236
there is a option to specify path to custom executor.
https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
in task definition there is "executor" json prop
Chronos also supports this property
Download/create some simple executor and try to test it.
2015-07-29 11:00 GMT+02:00 Aaron Carey <ac...@ilm.com>:
> Hi Tim,
>
> We have some specific requirements for moving data around when executing
> tasks on slaves, I want to be able to 'check out' a selection of files, and
> possibly mount filesystems onto the slave (and subsequently into the
> executing docker container). The data required by each task is specified in
> our database.
>
> Basically I wanted to customise an executor to prepare the data on the
> slave before executing the docker container, rather than having to get the
> container to download its own data or attempt to mount NFS volumes itself.
>
> I hope that all makes sense, I couldn't find a simple solution to this
> using the existing architecture.. I'd love to know your thoughts though!
>
> Thanks,
> Aaron
>
> ------------------------------
> *From:* Tim Chen [tim@mesosphere.io]
> *Sent:* 28 July 2015 19:01
> *To:* user@mesos.apache.org
> *Subject:* Re: Custom executor
>
> Can you explain what your motivations are and what your new custom
> executor will do?
>
> Tim
>
> On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
>
>> Hi,
>>
>> Is it possible to build a custom executor which is not associated with a
>> particular scheduler framework? I want to be able to write a custom
>> executor which is available to multiple schedulers (eg Marathon, Chronos
>> and our own custom scheduler). Is this possible? I couldn't quite figure
>> out the best way to go about this from the docs? Is it possible to mix and
>> match languages for schedulers and executors? (ie one is python one is C++)
>>
>> Thanks,
>> Aaron
>>
>
>
RE: Custom executor
Posted by Aaron Carey <ac...@ilm.com>.
Hi Tim,
We have some specific requirements for moving data around when executing tasks on slaves, I want to be able to 'check out' a selection of files, and possibly mount filesystems onto the slave (and subsequently into the executing docker container). The data required by each task is specified in our database.
Basically I wanted to customise an executor to prepare the data on the slave before executing the docker container, rather than having to get the container to download its own data or attempt to mount NFS volumes itself.
I hope that all makes sense, I couldn't find a simple solution to this using the existing architecture.. I'd love to know your thoughts though!
Thanks,
Aaron
________________________________
From: Tim Chen [tim@mesosphere.io]
Sent: 28 July 2015 19:01
To: user@mesos.apache.org
Subject: Re: Custom executor
Can you explain what your motivations are and what your new custom executor will do?
Tim
On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com>> wrote:
Hi,
Is it possible to build a custom executor which is not associated with a particular scheduler framework? I want to be able to write a custom executor which is available to multiple schedulers (eg Marathon, Chronos and our own custom scheduler). Is this possible? I couldn't quite figure out the best way to go about this from the docs? Is it possible to mix and match languages for schedulers and executors? (ie one is python one is C++)
Thanks,
Aaron
Re: Custom executor
Posted by Tim Chen <ti...@mesosphere.io>.
Can you explain what your motivations are and what your new custom executor
will do?
Tim
On Tue, Jul 28, 2015 at 5:08 AM, Aaron Carey <ac...@ilm.com> wrote:
> Hi,
>
> Is it possible to build a custom executor which is not associated with a
> particular scheduler framework? I want to be able to write a custom
> executor which is available to multiple schedulers (eg Marathon, Chronos
> and our own custom scheduler). Is this possible? I couldn't quite figure
> out the best way to go about this from the docs? Is it possible to mix and
> match languages for schedulers and executors? (ie one is python one is C++)
>
> Thanks,
> Aaron
>