From: Grant Slater Date: Sun, 30 Oct 2022 03:35:53 +0000 (+0000) Subject: mediawiki: Do not throttle background runJobs X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/fa80e10e4e9b18a3a780c505b5e507d2b2a659e5?ds=sidebyside mediawiki: Do not throttle background runJobs --- diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index 870f08313..a3a84a376 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -195,19 +195,20 @@ action :create do comment "Run mediawiki jobs" minute "*/3" user node[:mediawiki][:user] - command "/usr/bin/nice /usr/bin/php -d memory_limit=2048M -d error_reporting=22517 #{site_directory}/w/maintenance/runJobs.php --server=https://#{new_resource.site} --maxtime=160 --memory-limit=2048M --procs=8 --quiet" + command "/usr/bin/nice /usr/bin/php -d memory_limit=2048M -d error_reporting=22517 #{site_directory}/w/maintenance/runJobs.php --server=https://#{new_resource.site} --maxtime=175 --memory-limit=2048M --procs=8 --nothrottle --quiet" end cron_d "mediawiki-#{cron_name}-email-jobs" do comment "Run mediawiki email jobs" user node[:mediawiki][:user] - command "/usr/bin/nice /usr/bin/php -d memory_limit=2048M -d error_reporting=22517 #{site_directory}/w/maintenance/runJobs.php --server=https://#{new_resource.site} --maxtime=30 --type=enotifNotify --memory-limit=2048M --procs=4 --quiet" + command "/usr/bin/nice /usr/bin/php -d memory_limit=2048M -d error_reporting=22517 #{site_directory}/w/maintenance/runJobs.php --server=https://#{new_resource.site} --maxtime=55 --type=enotifNotify --memory-limit=2048M --procs=4 --nothrottle --quiet" end cron_d "mediawiki-#{cron_name}-refresh-links" do - comment "Run mediawiki refresh links table daily" + comment "Run mediawiki refresh links table weekly" minute "5" hour "0" + weekday "6" user node[:mediawiki][:user] command "/usr/bin/nice /usr/bin/php -d memory_limit=2048M -d error_reporting=22517 #{site_directory}/w/maintenance/refreshLinks.php --server=https://#{new_resource.site} --memory-limit=2048M --quiet" end