[AMO] Adjust timing of AMO cron jobs again please

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Other
RESOLVED FIXED
8 years ago
4 years ago

People

(Reporter: clouserw, Assigned: oremj)

Tracking

Details

(Reporter)

Description

8 years ago
We need to buy some time until Hudson is setup and we start doing incremental updates instead of complete updates.  Please adjust the AMO cron jobs on preview and production as below, spacing out the cron jobs as much as you can. 

Run once an hour:
php -f maintenance.php collection_stats
php -f maintenance.php blog
php -f update-search-views.php

Run every 3 hours:
php -f compatibility_report.php

Run twice per day:
php -f maintenance.php addons_collections_total
php -f maintenance.php collections_total
/usr/bin/python26 maintenance.py collections_ratings
/usr/bin/python26 import-personas.py

Run once per day:
php -f maintenance.php reviews
php -f maintenance.php ratings
php -f maintenance.php gc
php -f maintenance.php expired_resetcode
php -f maintenance.php category_totals
php -f maintenance.php collection_subscribers
php -f maintenance.php user_ratings
/usr/bin/python26 build-recommendations.py
/usr/bin/python26 maintenance.py share_count_totals
/usr/bin/python26 maintenance.py personas_adu

Run once per day after 2100 PST (that's after metrics is done):
/usr/bin/python26 maintenance.py total
/usr/bin/python26 maintenance.py weekly
php -f maintenance.php global_stats
/usr/bin/python26 maintenance.py addons_adu

Run once per week:
php -f maintenance.php unconfirmed

--------------------------------------------------

It occurs to me that storing the crontab in SVN would be a lot easier than filing these bugs.  Would it be easy on your end to just run `crontab -u /data/remora/..../crontab`?  If so I can cook up another bug for that.
(Assignee)

Updated

8 years ago
Assignee: server-ops → jeremy.orem+bugs
(Assignee)

Comment 1

8 years ago
This is what I have for preview: http://oremj.pastebin.mozilla.org/684487
(Reporter)

Comment 2

8 years ago
(In reply to comment #1)
> This is what I have for preview: http://oremj.pastebin.mozilla.org/684487

I think it looks great
(Reporter)

Updated

8 years ago
Blocks: 529250
(Assignee)

Comment 3

8 years ago
prod == preview now.
(Assignee)

Updated

8 years ago
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.