Detailed explanation of the task scheduler TaskLaunchScheduledService

After learning ES, I understand the configuration of ES and the triggering of tasks, then how tasks are scheduled, the most critical of which is the TaskLaunchScheduledService class.
   In fact, TaskLaunchScheduledService integrates the multi-threaded concurrent package of AbstractScheduledService, and uses it to schedule tasks. It is scheduled every 10S minutes. The main task is to start the MESOS instance
    @Override
    protected Scheduler scheduler() {
        return Scheduler.newFixedDelaySchedule(2, 10, TimeUnit.SECONDS);
    }

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326448593&siteId=291194637