Redis cluster master slave - not able to add key

4,131 views
Skip to first unread message

rakesh goyal

unread,
Mar 21, 2016, 3:36:19 AM3/21/16
to Redis DB




I have setup up Redis master slave configuration having one master (6379 port) and 3 slaves (6380,6381,6382) running in the same machine. Looks like cluster is setup properly as I can see the following output on running info command:

# Replication
role:master
connected_slaves:3
slave0:ip=127.0.0.1,port=6380,state=online,offset=29,lag=1
slave1:ip=127.0.0.1,port=6381,state=online,offset=29,lag=1
slave2:ip=127.0.0.1,port=6382,state=online,offset=29,lag=1
master_repl_offset:43
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:2
repl_backlog_histlen:42

But wherever I try to add new key in master, I get the following error:

(error) CLUSTERDOWN Hash slot not served

Using redis-3.0.7 in Mac OS X Yosemite.


Jan-Erik Rediger

unread,
Mar 21, 2016, 5:52:30 AM3/21/16
to redi...@googlegroups.com
Your Redis is running in the special Cluster mode, which is _not_ set up
correctly.
See http://redis.io/topics/cluster-tutorial and
http://redis.io/topics/cluster-spec for more info.
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Ken Wang

unread,
Jun 14, 2016, 1:18:11 AM6/14/16
to Redis DB
How about run the redis-cli -c -p 6379 cluster info to check the cluster and hash slots assigned status?

robot...@gmail.com

unread,
Oct 4, 2016, 2:33:26 AM10/4/16
to Redis DB
Check configuration and log file.
Reply all
Reply to author
Forward
0 new messages