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 <[email protected]>:

>  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 [[email protected]]
> *Sent:* 28 July 2015 19:01
> *To:* [email protected]
> *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 <[email protected]> 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
>>
>
>

Reply via email to