Apache Chronos Architecture Explaination

前端 未结 1 1855
盖世英雄少女心
盖世英雄少女心 2021-01-25 15:54

I was trying to see what makes Chronos better than Crons? I am not able to understand its job scheduling and executing architecture completely.

Specifically, these are

相关标签:
1条回答
  • 2021-01-25 16:08

    Some of your questions are answered in my reply here so I will focus on the other questions not addressed.

    1. Chronos stores state in memory unless you are using Zookeeper, in which case it is stored in Zookeeper at /chronos/state by default reference here.

    2. See: Chronos: How does it work?

    3. Based on lastsuccess and lastfailure seen here

    4. Because the authors decided to use JSON and a RESTful API

    5. Yes. The use of && or bash scripts... They will all be executed on the same machine that the job is running on. No, single jobs cannot run the commands in parallel, but multiple jobs could be scheduled at the same time.

    6. Because Chronos is for short-lived cron jobs that can be scheduled on a regular basis, whereas Marathon is for long-lived tasks. The reason Chronos is a good replacement for cron is that it is wholly dependent on Mesos - which means you can also use Mesos attributes to schedule jobs around your Mesos cluster appropriately. See here and here

    7. Nope.

    8. The state of async jobs is suspect, it looks like it was removed but still unfortunately has some references in the documentation.

    0 讨论(0)
提交回复
热议问题