X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpoolcounter%2FPoolCounterRedis.php;h=f5fa4c7319192af98ab6e1e400a2e7295d66e428;hb=35afb25421a7b0d40a41a2bc006e82433540e5b4;hp=9515f25dd831d092f8002891f61417384910f076;hpb=495e8ddf7e6940777f3318a1a2e37d85bfdbdbf1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/poolcounter/PoolCounterRedis.php b/includes/poolcounter/PoolCounterRedis.php index 9515f25dd8..f5fa4c7319 100644 --- 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']; - $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'] );