ArielGlenn has uploaded a new change for review.

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

Change subject: dumps: actually produce the new dircreation dump stages files
......................................................................

dumps: actually produce the new dircreation dump stages files

also add dir creation to the full dump runs for huge wikis,
previously ommitted for manual runs but needed for cron

Change-Id: Ic027413a3bfe33f9f47238b61c256dd38d39a4c3
---
M modules/snapshot/manifests/dumps/stagesconfig.pp
M modules/snapshot/templates/dumpstages.erb
2 files changed, 11 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/59/263659/1

diff --git a/modules/snapshot/manifests/dumps/stagesconfig.pp 
b/modules/snapshot/manifests/dumps/stagesconfig.pp
index 2229d5e..407e62a 100644
--- a/modules/snapshot/manifests/dumps/stagesconfig.pp
+++ b/modules/snapshot/manifests/dumps/stagesconfig.pp
@@ -73,5 +73,13 @@
             stagestype => 'partial_huge',
             stages     => $stages,
         }
+        snapshot::dumps::stagesconf { 'stages_create':
+            stagestype => 'create',
+            stages     => $stages,
+        }
+        snapshot::dumps::stagesconf { 'stages_create_huge':
+            stagestype => 'create_huge',
+            stages     => $stages,
+        }
     }
 }
diff --git a/modules/snapshot/templates/dumpstages.erb 
b/modules/snapshot/templates/dumpstages.erb
index ac049f9..786c479 100644
--- a/modules/snapshot/templates/dumpstages.erb
+++ b/modules/snapshot/templates/dumpstages.erb
@@ -1,7 +1,9 @@
 # run these commands in order on the regular snapshot hosts
 
 # slots_used numcommands on_failure error_notify command
-<% if @stagestype == 'create_huge' %>
+
+<% if @stagestype == 'normal_huge' or @stagestype == 'partial_huge' or 
@stagestype == 'create_huge' %>
+# mark the start of the run for all huge wikis
 1 1 continue none <%= @stages['hugewikis']['firststage'] -%> --job createdirs 
--sleep 5
 <% end -%>
 
@@ -78,4 +80,3 @@
 <% end -%>
 
 <% end -%>
-

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic027413a3bfe33f9f47238b61c256dd38d39a4c3
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to