dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "allow xml page content or metadata dumps to target specific namespaces"
[lhc/web/wiklou.git]
/
includes
/
poolcounter
/
PoolCounterRedis.php
diff --git
a/includes/poolcounter/PoolCounterRedis.php
b/includes/poolcounter/PoolCounterRedis.php
index
9515f25
..
f5fa4c7
100644
(file)
--- a/
includes/poolcounter/PoolCounterRedis.php
+++ b/
includes/poolcounter/PoolCounterRedis.php
@@
-85,7
+85,9
@@
class PoolCounterRedis extends PoolCounter {
parent::__construct( $conf, $type, $key );
$this->serversByLabel = $conf['servers'];
parent::__construct( $conf, $type, $key );
$this->serversByLabel = $conf['servers'];
- $this->ring = new HashRing( array_fill_keys( array_keys( $conf['servers'] ), 100 ) );
+
+ $serverLabels = array_keys( $conf['servers'] );
+ $this->ring = new HashRing( array_fill_keys( $serverLabels, 10 ) );
$conf['redisConfig']['serializer'] = 'none'; // for use with Lua
$this->pool = RedisConnectionPool::singleton( $conf['redisConfig'] );
$conf['redisConfig']['serializer'] = 'none'; // for use with Lua
$this->pool = RedisConnectionPool::singleton( $conf['redisConfig'] );