scala-redis icon indicating copy to clipboard operation
scala-redis copied to clipboard

cluster MOVE redirect

Open knavely opened this issue 11 years ago • 4 comments

when running unstable branch redis in cluster mode configured locally with 6 nodes, 3 masters and 3 slaves as described here: http://redis.io/topics/cluster-tutorial

replication steps:

  1. as in the example create the redis cluster r with 3 nodes: localhost:7000, localhost:7001, localhost:7002.
  2. r.lpush(1,"hi") -- worked
  3. r.lpush(4,"hi") should redirect to localhost:7002 where redis returns a move redirect, not a long, i suspect from looking at the stack trace that the client expect a long.

see the section on MOVE redirect: http://redis.io/topics/cluster-spec

knavely avatar Aug 21 '14 05:08 knavely

I see that u r trying to run scala-redis in cluster mode. It's not ready to be run in cluster as specified in http://redis.io/topics/cluster-spec. It can run in a custom home grown cluster mode as implemented in https://github.com/debasishg/scala-redis/blob/master/src/main/scala/com/redis/cluster/RedisCluster.scala. It's a simple clustering technique based o consistent hashing of multiple redis servers.

debasishg avatar Aug 24 '14 13:08 debasishg

Thanks for the response. Sorry for the confusion. Matt

On Sunday, August 24, 2014, Debasish Ghosh [email protected] wrote:

I see that u r trying to run scala-redis in cluster mode. It's not ready to be run in cluster as specified in http://redis.io/topics/cluster-spec. It can run in a custom home grown cluster mode as implemented in https://github.com/debasishg/scala-redis/blob/master/src/main/scala/com/redis/cluster/RedisCluster.scala. It's a simple clustering technique based o consistent hashing of multiple redis servers.

— Reply to this email directly or view it on GitHub https://github.com/debasishg/scala-redis/issues/115#issuecomment-53192863 .

knavely avatar Aug 25 '14 15:08 knavely

Is this issue still open ?

chitralverma avatar Dec 26 '18 05:12 chitralverma

Yeah .. it's still open .. unfortunately I don't have any time to implement redis cluster spec. PRs welcome though :-)

debasishg avatar Dec 26 '18 07:12 debasishg