Project

General

Profile

Actions

Feature #8987

closed

Migrate away from wp-cron

Added by Boone Gorges over 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority name:
High
Assignee:
Category name:
-
Target version:
Start date:
2017-12-07
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

I suspect that our persistent performance issues are somehow linked to cron jobs. A few pieces of evidence:

1. Outages seem to take place on the hour (1pm, 3pm, etc), when WP cron jobs are more likely to be run.
2. When I put monitoring tools in place to track long-running queries, wp-cron.php requests are some of the most significant culprits
3. The wp-cron system is known to scale quite poorly on multisite, where it's likely to trigger locking and concurrency issues

Even if it turns out that this is not the culprit, it would not hurt to move to something more robust.

Ray, as a starting point, I was wondering whether you had experience with alternative systems. Something like https://engineering.hmn.md/projects/cavalcade/ seems ideal but will obviously take some config and testing, which I don't want to devote if you think there might be a simpler fix.


Files

cavalcade-migrate-all.sh (111 Bytes) cavalcade-migrate-all.sh Boone Gorges, 2018-06-05 05:22 PM
cavalcade-migrate.php (845 Bytes) cavalcade-migrate.php Boone Gorges, 2018-06-05 05:23 PM

Related issues

Related to CUNY Academic Commons - Bug #9865: Broken Link Checker cron jobs running longResolvedBoone Gorges2018-05-31

Actions
Related to CUNY Academic Commons - Bug #6737: wp-rss-multi-importer cron job requires huge number of DB queriesResolvedBoone Gorges2016-11-15

Actions
Related to CUNY Academic Commons - Bug #9926: twitter-mentions-as-comments cron jobs can run longNewBoone Gorges2018-06-13

Actions
Related to CUNY Academic Commons - Bug #9929: External Group Blogs cron reviewResolvedBoone Gorges2018-06-14

Actions
Related to CUNY Academic Commons - Bug #9930: wp_privacy_delete_old_export_files runs a bazillion timesResolvedBoone Gorges2018-06-14

Actions
Actions

Also available in: Atom PDF