← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~ilasc/lp-production-crontabs/reschedule-repack-cron into lp:~launchpad-pqm/lp-production-crontabs/staging

 

Ioana Lasc has proposed merging lp:~ilasc/lp-production-crontabs/reschedule-repack-cron into lp:~launchpad-pqm/lp-production-crontabs/staging.

Commit message:
Reduce frequency of QAStaging Git Repack Cron Job

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ilasc/lp-production-crontabs/reschedule-repack-cron/+merge/400686

We had this cron job running in QA Staging every 5 minutes since last week for testing purposes. 

I'm proposing we move to a more realistic schedule - possibly mirroring Production: run only once per night a 1 AM. 

Suggestions on the concrete schedule are more than welcome - intention here to reduce the frequency of the job now that we've observed it behaving ok for a while, it's not necessary to overload QAS with repacks every 5 minutes. 
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~ilasc/lp-production-crontabs/reschedule-repack-cron into lp:~launchpad-pqm/lp-production-crontabs/staging.
=== modified file 'gandwana.internal-launchpad'
--- gandwana.internal-launchpad	2021-04-02 12:19:06 +0000
+++ gandwana.internal-launchpad	2021-04-07 09:03:54 +0000
@@ -79,7 +79,7 @@
 */5 * * * * $LP_PY /srv/qastaging.launchpad.net/qastaging/launchpad/cronscripts/process-job-source.py IGitRefScanJobSource -q --log-file=INFO:/srv/qastaging.launchpad.net/qastaging-logs/process-job-source.IGitRefScanJobSource.log
 
 # Git repository repack
-*/5 * * * * BRZ_PLUGIN_PATH=/srv/qastaging.launchpad.net/qastaging/launchpad/brzplugins/ $LP_PY /srv/qastaging.launchpad.net/qastaging/launchpad/cronscripts/repack_git_repositories.py -v --log-file=INFO:/srv/qastaging.launchpad.net/qastaging-logs/repack-git-repositories.log
+0 1 * * * BRZ_PLUGIN_PATH=/srv/qastaging.launchpad.net/qastaging/launchpad/brzplugins/ $LP_PY /srv/qastaging.launchpad.net/qastaging/launchpad/cronscripts/repack_git_repositories.py -v --log-file=INFO:/srv/qastaging.launchpad.net/qastaging-logs/repack-git-repositories.log
 
 # OOPS amqp. Normally one per unix user; but need separate for qa/staging
 45 * * * * /srv/oops-datedir2amqp/python-oops-datedir2amqp/bin/datedir2amqp --exchange oopses --host rabbitmq.staging.lp.internal --username oops-datedir2amqp --password `cat /srv/oops-datedir2amqp/rabbitpw` --vhost staging.launchpad.net --repo /srv/bzrsyncd.staging.launchpad.net/ --key ""


Follow ups