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