Project

General

Profile

Actions

Bug #14276

closed

Increase number of workers in Cavalcade

Added by Raymond Hoh about 3 years ago. Updated over 2 years ago.

Status:
Deferred
Priority name:
Normal
Assignee:
Category name:
Cavalcade
Target version:
Start date:
2021-04-02
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

I wanted to check in on how Cavalcade was doing since the upgrade in #12240 and it looks like we are running into a backlog again.

Backlog was 1 hour behind, but I'm working to temporarily address this by removing some of the older items as mentioned in #12240. What this means is Cavalcade's workers cannot get through the job queue fast enough.

Boone, I think we might want to increase the number of workers used by Cavalcade. Currently, that number is set to 4 by default:
https://github.com/humanmade/Cavalcade-Runner/blob/0dfb42d505e9cd870a11366c49ee680d327c961a/inc/class-runner.php#L36

Perhaps 6 or 8 workers might be preferable. If we wanted to change this, we would need to do this at the /bin/ script level. In the sample script provided by Cavalcade, that would be here:
https://github.com/humanmade/Cavalcade-Runner/blob/0dfb42d505e9cd870a11366c49ee680d327c961a/bin/cavalcade#L30

The other way to address this is by patching the runner so it doesn't use the last updated nextrun timestamp with the interval as it does now when rescheduling jobs. See https://github.com/humanmade/Cavalcade-Runner/issues/51.

A workaround is to schedule a task to purge older waiting jobs that reschedule every hour or less than an hour on a daily or twice-daily basis.


Related issues

Related to CUNY Academic Commons - Feature #12440: Upgrade CavalcadeResolvedRaymond Hoh2020-02-18

Actions
Related to CUNY Academic Commons - Bug #14299: Remove Site Health scheduled taskResolvedRaymond Hoh2021-04-09

Actions
Actions

Also available in: Atom PDF