jenkins-bot has submitted this change and it was merged. Change subject: beta: memcached multiwrite to pmtpa and eqiad ......................................................................
beta: memcached multiwrite to pmtpa and eqiad I started creating instances for the beta cluster on eqiad. I got two new memcached servers: deployment-memc02.eqiad.wmflabs 10.68.16.14 deployment-memc03.eqiad.wmflabs 10.68.16.15 I would like MediaWiki to write to both datacenters. Hopefully this configuration would work. Change-Id: If84c2513d4b1ecc1c13bc5ebe565211730654ce7 --- M wmf-config/mc-labs.php 1 file changed, 32 insertions(+), 4 deletions(-) Approvals: Ori.livneh: Looks good to me, but someone else must approve Hashar: Looks good to me, approved jenkins-bot: Verified diff --git a/wmf-config/mc-labs.php b/wmf-config/mc-labs.php index dbc53ee..eaf6eea 100644 --- a/wmf-config/mc-labs.php +++ b/wmf-config/mc-labs.php @@ -14,14 +14,42 @@ * */ $wgMemCachedPersistent = true; -$wgMainCacheType = CACHE_MEMCACHED; + +$wgMainCacheType = 'beta-memcached-multiwrite'; + $wgMemCachedTimeout = 500000; # micro seconds $wgSessionsInMemcached = true; -$wgMemCachedServers = array( - 0 => '10.4.1.86:11211', # deployment-memc0 - 1 => '10.4.1.106:11211', # deployment-memc1 +# While migrating beta from pmtpa to eqiad, we want to write to memcached in +# both datacenters. + +$wgObjectCaches['beta-memcached-pmtpa'] = array( + 'class' => 'MemcachedPeclBagOStuff', + 'serializer' => 'igbinary', + 'persistent' => false, + 'servers' => array( + 0 => '10.4.1.86:11211', # deployment-memc0.pmtpa + 1 => '10.4.1.106:11211', # deployment-memc1.pmtpa + ), + 'retry_timeout' => 1, +); +$wgObjectCaches['beta-memcached-eqiad'] = array( + 'class' => 'MemcachedPeclBagOStuff', + 'serializer' => 'igbinary', + 'persistent' => false, + 'servers' => array( + 0 => '10.68.16.14:11211', # deployment-memc2.eqiad + 1 => '10.68.16.15:11211', # deployment-memc3.eqiad + ), + 'retry_timeout' => 1, ); +$wgObjectCaches['beta-memcached-multiwrite'] = array( + 'class' => 'MultiWriteBagOStuff', + 'caches' => array( + 0 => $wgObjectCaches['beta-memcached-pmtpa'], + 1 => $wgObjectCaches['beta-memcached-eqiad'], + ), +); } # end safe guard -- To view, visit https://gerrit.wikimedia.org/r/115623 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If84c2513d4b1ecc1c13bc5ebe565211730654ce7 Gerrit-PatchSet: 2 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: Hashar <has...@free.fr> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Hoo man <h...@online.de> Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits