Reputation: 602
I just started evaluating Redis. I am using Redis 2.8.19 which the most latest stable release. Redis 2.9 is still unstable and Redis 3.0 is just available for developer's preview (not recommended for production). I was tryin to setus a cluster of Redis and when I changed my redis.conf and appended
cluster-enabled yes cluster-config-file nodes.conf cluster-node-timeout 5000
and started my Redis server by src/redis-server ./redis.conf
it gave me an error as follows
* FATAL CONFIG FILE ERROR * Reading the configuration file, at line 2
'cluster-enabled yes' Bad directive or wrong number of arguments
I googled the error and got to know that my version (2.8.19) does not support cluster. I was still unable to fine any such specification in Redis Docs. My question is simple. Does Redis 2.8.19 supports redis cluster configuration? Or I have to upgrade to Redis 2.9 or Redis 3.0. I am evaluating Redis because I need to deploy it in production. Please guide.
Upvotes: 0
Views: 2445
Reputation: 330
Redis cluster is supported only in Redis 3.0+ (which is now stable). I have written a simple API called "Simple Redis Cluster Client" which can be used in redis's sub 3.0 versions for running in a cluster like mode (Not precisely a cluster, it just distributes keys among redis nodes based on the key's hashcode, You can have a look @ https://github.com/prash-mi/simple-redis-cluster-client
Upvotes: 1
Reputation: 50112
Cluster support for Redis is only from v3 - v2.8.19 doesn't do clustering.
Upvotes: 0
Reputation: 18514
Redis Cluster support is only for versions >= 3.0.0. Redis 3.0.0 will be released as a stable version in a matter of days, it's a good idea to use it if you want to use Cluster. The cluster support is considered to be stable, however for it to be considered mature we want to see adoption. Btw there is already at least a very large site using it in production. Currently the most sane thing to do if you need Redis Cluster is to test it for your use case, and if it looks great, use it.
Upvotes: 1