Meso User Performer Planning with Airbnb Chronos REST API

The Chronos website mentions that Chronos supports custom Mesos artists. Mesos examples show how to write a custom Mesos executor (master / src / examples / java / TestExecutor.java). However, I cannot find documentation on how to schedule such a user executor using the Chronos RET API. Any help or pointers to this would be appreciated.

Thanks in advance.

+4
source share
1 answer

We wrote a sample artist without any logic. You can find it here: https://github.com/mesosphere/sample_mesos_executor .

Here is an example of how you submit a custom artist. Please note that the performer must be executable. We use arx in this example, which is the tar executable. You can also point to a shell script that does java -cp foo.jar my.executor.implementation arg1 arg2...

 echo '{"schedule":"R/2012-11-10T00:52:00Z/PT90M", \ "name":"request_event_counter_hourly", \ "command":"/srv/mesos/utils/run_emr.sh jar eventcounter.RequestEventCounter", \ "epsilon":"PT15M", \ "executor":"/srv/mesos/utils/async-executor.arx" }' | \ http POST your-chronos-host.com:4400/scheduler/iso8601 
+7
source

Source: https://habr.com/ru/post/1489653/


All Articles