Gehel has submitted this change and it was merged.
Change subject: Backup cirrus metastore index
......................................................................
Backup cirrus metastore index
This data is only stored in elasticsearch, it contains various states relative
to cirrus maintenance tasks. Loosing this data would not be a catastrophe but
it's just few kb so let's backup it as well.
Change-Id: I99568bb4ed641a9b667370d9e90ce331b0a0cb75
---
M modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
1 file changed, 23 insertions(+), 0 deletions(-)
Approvals:
Gehel: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
b/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
index 3b6ddb4..f3a5b7c 100644
--- a/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
+++ b/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
@@ -116,6 +116,29 @@
fi
done
+# dump the metastore index (contains persistent states used by cirrus
+# administrative tasks). This index is cluster scoped and not bound to a
+# particular wiki (we pass --wiki to mwscript because it's mandatory but this
+# option is not used by the script itself)
+clusters="eqiad codfw"
+for cluster in $clusters; do
+ filename="cirrus-metastore-$cluster-$today"
+ targetFile="$targetDir/$filename.json.gz"
+ if [ "$dryrun" == "true" ]; then
+ echo "php $multiVersionScript
extensions/CirrusSearch/maintenance/metastore.php --wiki=metawiki --dump
--cluster=$cluster 2>> /var/log/cirrusdump/cirrusdump-$filename.log | $gzip >
$targetFile"
+ else
+ php $multiVersionScript \
+ extensions/CirrusSearch/maintenance/metastore.php \
+ --wiki=metawiki \
+ --dump \
+ --cluster=$cluster \
+ 2>> /var/log/cirrusdump/cirrusdump-$filename.log \
+ | $gzip > $targetFile
+ fi
+done
+
+
+
# Maintain a 'current' symlink always pointing at the most recently completed
dump
if [ "$dryrun" == "false" ]; then
rm -f "$targetDirBase/current"
--
To view, visit https://gerrit.wikimedia.org/r/297237
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I99568bb4ed641a9b667370d9e90ce331b0a0cb75
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: DCausse <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Gehel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits