Skip to content

Chronos response becomes very slow when there are a lot of tasks #803

@857851000

Description

@857851000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions