Aaron Schulz has uploaded a new change for review.

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

Change subject: Made the session/main stashes write to both DCs
......................................................................

Made the session/main stashes write to both DCs

Bug: T111575
Change-Id: I1932aa2b3a42c59676875adc15af5be56034fc9f
---
M wmf-config/InitialiseSettings.php
M wmf-config/redis.php
2 files changed, 12 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/25/247325/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index c0d602a..571a3d4 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -15664,11 +15664,11 @@
        'default' => '//creativecommons.org/images/public/somerights20.png',
 ),
 'wgSessionCacheType' => array(
-       'default' => 'redis_local',  // declared in redis.php
+       'default' => 'redis-multiwrite',  // declared in redis.php
        'labswiki' => 'memcached-pecl',
 ),
 'wgMainStash' => array(
-       'default' => 'redis_local',  // declared in redis.php
+       'default' => 'redis-multiwrite',  // declared in redis.php
        'labswiki' => 'memcached-pecl',
 ),
 
diff --git a/wmf-config/redis.php b/wmf-config/redis.php
index c7aa9da..2b1c6ef 100644
--- a/wmf-config/redis.php
+++ b/wmf-config/redis.php
@@ -10,3 +10,13 @@
 
 $wgObjectCaches['redis_master'] = $wgObjectCaches['redis_eqiad'];
 $wgObjectCaches['redis_local'] = $wgObjectCaches["redis_{$wmfDatacenter}"];
+
+// Stash that writes to the master DC store first and asynchronously to the 
other DCs
+$wgObjectCaches['redis-multiwrite'] = array(
+       'class' => 'MultiWriteBagOStuff',
+       'caches' => array(
+               0 => $wgObjectCaches['redis_master'],
+               1 => $wgObjectCaches['redis_local']
+       ),
+       'replication' => 'async'
+);
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1932aa2b3a42c59676875adc15af5be56034fc9f
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>

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

Reply via email to