-
Notifications
You must be signed in to change notification settings - Fork 524
Description
We use Chronos to schedule more than 1000+ tasks, and as the number of tasks increases, we find that Chronos has a very long response time when modifying, deleting, and adding tasks.By looking at the Chronos log, we can found a large number of same logs:
08:49:59.152 [pool-4-thread-1] INFO org.apache.mesos.chronos.scheduler.jobs.JobScheduler - Reloading jobs 08:49:59.590 [pool-4-thread-1] INFO org.apache.mesos.chronos.scheduler.jobs.JobScheduler - jobsToRun.size=1, jobsNotToRun.size=1001
In Chronos source code file JobScheduler
, there is an infinite loop function mainLoop ()
,we tried to add sleep to reduce the cycle interval and found that the Chronos response time was greatly reduced. So can you consider adding a parameter to control the sleep time length according to the actual application needs,or give other better solutions.
In addition, when there are a large number of tasks Chronos Web page open time is very long or can not open.
Chronos version:3.0.1
Mesos version:1.1.0