Nemo bis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/95889


Change subject: Make the monthly querypages updates not hit each cluster on the 
same day
......................................................................

Make the monthly querypages updates not hit each cluster on the same day

And on the 17th day he rested. Right?

Now that each page is updated every month (as opposed to just one page),
it no longer makes sense to run all updates (previously only one) for
each cluster on the same day: instead do one page per day on all clusters
at the same time.

Bug: 15434
Change-Id: Ib4c84101c7f04e8b0a96f4c05891f4d1b40154be
---
M manifests/misc/maintenance.pp
1 file changed, 9 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/89/95889/1

diff --git a/manifests/misc/maintenance.pp b/manifests/misc/maintenance.pp
index bb26eda..6853eff 100644
--- a/manifests/misc/maintenance.pp
+++ b/manifests/misc/maintenance.pp
@@ -382,18 +382,19 @@
         define updatequerypages::cronjob() {
 
                 $cluster = regsubst($name, '@.*', '\1')
-                $monthday = regsubst($name, '.*@', '\1')
+                # Currently they're all monthly, this part is kept for BC and 
in case we change mind
+                # $monthday = regsubst($name, '.*@', '\1')
 
                 Cron {
                         user => mwdeploy,
                         hour => 1,
                         minute => 0,
-                        monthday => $monthday,
+                        month => absent,
                 }
 
                 cron { "cron-updatequerypages-ancientpages-${name}":
                         command => "/usr/local/bin/mwscriptwikiset 
updateSpecialPages.php ${cluster}.dblist --override --only=Ancientpages > 
/home/mwdeploy/updateSpecialPages/${name}-AncientPages.log 2>&1",
-                        month => absent,
+                        monthday => 11,
                         ensure => $enabled ?{
                           true => present,
                           false => absent,
@@ -403,7 +404,7 @@
 
                 cron { "cron-updatequerypages-deadendpages-${name}":
                         command => "/usr/local/bin/mwscriptwikiset 
updateSpecialPages.php ${cluster}.dblist --override --only=Deadendpages > 
/home/mwdeploy/updateSpecialPages/${name}-DeadendPages.log 2>&1",
-                        month => absent,
+                        monthday => 12,
                         ensure => $enabled ?{
                           true => present,
                           false => absent,
@@ -413,7 +414,7 @@
 
                 cron { "cron-updatequerypages-mostlinked-${name}":
                         command => "/usr/local/bin/mwscriptwikiset 
updateSpecialPages.php ${cluster}.dblist --override --only=Mostlinked > 
/home/mwdeploy/updateSpecialPages/${name}-MostLinked.log 2>&1",
-                        month => absent,
+                        monthday => 13,
                         ensure => $enabled ?{
                           true => present,
                           false => absent,
@@ -423,7 +424,7 @@
 
                 cron { "cron-updatequerypages-mostrevisions-${name}":
                         command => "/usr/local/bin/mwscriptwikiset 
updateSpecialPages.php ${cluster}.dblist --override --only=Mostrevisions > 
/home/mwdeploy/updateSpecialPages/${name}-MostRevisions.log 2>&1",
-                        month => absent,
+                        monthday => 14,
                         ensure => $enabled ?{
                           true => present,
                           false => absent,
@@ -433,7 +434,7 @@
 
                 cron { "cron-updatequerypages-wantedpages-${name}":
                         command => "/usr/local/bin/mwscriptwikiset 
updateSpecialPages.php ${cluster}.dblist --override --only=Wantedpages > 
/home/mwdeploy/updateSpecialPages/${name}-WantedPages.log 2>&1",
-                        month => absent,
+                        monthday => 15,
                         ensure => $enabled ?{
                           true => present,
                           false => absent,
@@ -443,7 +444,7 @@
 
                 cron { "cron-updatequerypages-fewestrevisions-${name}":
                         command => "/usr/local/bin/mwscriptwikiset 
updateSpecialPages.php ${cluster}.dblist --override --only=Fewestrevisions > 
/home/mwdeploy/updateSpecialPages/${name}-FewestRevisions.log 2>&1",
-                        month => absent,
+                        monthday => 16,
                         ensure => $enabled ?{
                           true => present,
                           false => absent,

-- 
To view, visit https://gerrit.wikimedia.org/r/95889
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4c84101c7f04e8b0a96f4c05891f4d1b40154be
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Nemo bis <federicol...@tiscali.it>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to