Phpredis: failed to create client about the Redis Cluster of one master responsible for all 16384 slots

Created on 15 Jul 2016  Â·  5Comments  Â·  Source: phpredis/phpredis

<?php
   $credis = new RedisCluster(NULL, Array('10.11.144.111:6004',));  
   var_dump($credis);
   echo "Connection to server sucessfully";
   $credis->set('q', 'wwww');
   echo "Server is running: " . $credis->get('q');
?>

[root@cdn phpredis-2.2.8]# php test.php
_PHP Fatal error: Uncaught exception 'RedisClusterException' with message 'Couldn't map cluster keyspace using any provided seed' in /srv/letv/lizha/php_redis/phpredis-2.2.8/test.php:3
Stack trace:

0 /srv/letv/lizha/php_redis/phpredis-2.2.8/test.php(3): RedisCluster->__construct('', Array)

1 {main}

thrown in /srv/letv/lizha/php_redis/phpredis-2.2.8/test.php on line 3_

the Redis Cluster just have one master:
127.0.0.1:6004> CLUSTER slots
1) 1) (integer) 0
2) (integer) 16383
3) 1) "10.11.144.111"
2) (integer) 6004
4) 1) "10.11.144.19"
2) (integer) 7002

Most helpful comment

Need to support the client to the Redis Cluster just having one master
please merge commit:

#891

All 5 comments

Need to support the client to the Redis Cluster just having one master
please merge commit:

#891

This is merged, thanks!

Could you make a patch to the releases about this fix? Wondering why there is no new releases, anything we should be aware of? Thanks!

+1 waiting for the release for this

+1 also waiting for this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lyrixx picture lyrixx  Â·  4Comments

coolrecep picture coolrecep  Â·  3Comments

RobChen picture RobChen  Â·  4Comments

btrazzini picture btrazzini  Â·  6Comments

HunterEl picture HunterEl  Â·  4Comments