X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Fpoolcounter%2FPoolCounterRedis.php;h=f5fa4c7319192af98ab6e1e400a2e7295d66e428;hb=284778405b0e41c57b3085958401e07b6ca742e6;hp=9515f25dd831d092f8002891f61417384910f076;hpb=07a791ffd1d80c6a8f2ca4dfdbc3f2002ac869fe;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'] );