]> git.openstreetmap.org Git - chef.git/commitdiff
wiki: Run dump nicer only once a week master
authorGrant Slater <github@firefishy.com>
Fri, 17 Jan 2025 03:14:51 +0000 (03:14 +0000)
committerGrant Slater <github@firefishy.com>
Fri, 17 Jan 2025 03:14:51 +0000 (03:14 +0000)
cookbooks/wiki/recipes/default.rb

index e7a2b3e57b5ea6067bd41b3347baae9d695e89c1..e774d046fd45f4677f039edb73838a7dfa5a6e95 100644 (file)
@@ -153,6 +153,7 @@ systemd_service "wiki-dump" do
   exec_start "/usr/bin/php w/maintenance/dumpBackup.php --full --quiet --output=gzip:dump/dump.xml.gz"
   working_directory "/srv/wiki.openstreetmap.org"
   user "wiki"
+  nice 19
   sandbox :enable_network => true
   memory_deny_write_execute false
   restrict_address_families "AF_UNIX"
@@ -161,7 +162,7 @@ end
 
 systemd_timer "wiki-dump" do
   description "Wiki dump"
-  on_calendar "02:00"
+  on_calendar "Sun 02:30"
 end
 
 service "wiki-dump.timer" do