Giuseppe Lavagetto has uploaded a new change for review.
https://gerrit.wikimedia.org/r/197496
Change subject: memcached: add configurations for codfw
......................................................................
memcached: add configurations for codfw
Bug: T91754
Change-Id: I360c1272642ed1743d6f82d5b17ddc3f59bda3c8
---
A wmf-config/mc-codfw.php
M wmf-config/session.php
2 files changed, 50 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/96/197496/1
diff --git a/wmf-config/mc-codfw.php b/wmf-config/mc-codfw.php
new file mode 100644
index 0000000..f33fb69
--- /dev/null
+++ b/wmf-config/mc-codfw.php
@@ -0,0 +1,32 @@
+<?php
+# WARNING: This file is publically viewable on the web. Do not put private
data here.
+$wgMainCacheType = 'memcached-pecl';
+$wgMemCachedPersistent = false;
+$wgMemCachedTimeout = 0.25 * 1e6; // 250ms
+
+$wgObjectCaches['memcached-pecl'] = array(
+ 'class' => 'MemcachedPeclBagOStuff',
+ 'serializer' => 'php',
+ 'persistent' => false,
+ 'servers' => defined( 'HHVM_VERSION' )
+ ? array( '/var/run/nutcracker/nutcracker.sock:0' )
+ : array( '127.0.0.1:11212' ),
+ 'server_failure_limit' => 1e9,
+ 'retry_timeout' => -1,
+ 'loggroup' => 'memcached',
+);
+
+$wgBloomFilterStores['main'] = array(
+ 'cacheId' => 'main-v1',
+ 'class' => 'BloomCacheRedis',
+ 'redisServers' => array(
+ '10.192.0.33:6379', // rbf2001 - master
+ '10.192.16.36:6379', // rbf2002 - slave
+ ),
+ 'redisConfig' => array(
+ 'password' => $wmgRedisPassword,
+ 'connectTimeout' => .25,
+ ),
+);
+
+# vim: set sts=4 sw=4 et :
diff --git a/wmf-config/session.php b/wmf-config/session.php
index 6386001..a7f9345 100644
--- a/wmf-config/session.php
+++ b/wmf-config/session.php
@@ -21,4 +21,22 @@
'10.64.48.95', # mc1017
'10.64.48.96', # mc1018
),
+ 'codfw' => array(
+ '10.192.0.34', # "shard1"
+ '10.192.0.35', # "shard2"
+ '10.192.0.36', # "shard3"
+ '10.192.0.37', # "shard4"
+ '10.192.0.38', # "shard5"
+ '10.192.0.39', # "shard6"
+ '10.192.16.37', # "shard7"
+ '10.192.16.38', # "shard8"
+ '10.192.16.39', # "shard9"
+ '10.192.16.40', # "shard10"
+ '10.192.16.41', # "shard11"
+ '10.192.16.42', # "shard12"
+ '10.192.32.20', # "shard13"
+ '10.192.32.21', # "shard14"
+ '10.192.32.22', # "shard15"
+ '10.192.32.23', # "shard16"
+ ),
);
--
To view, visit https://gerrit.wikimedia.org/r/197496
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I360c1272642ed1743d6f82d5b17ddc3f59bda3c8
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits