debasishg / scala-redis

A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
1.02k stars 219 forks source link

cluster MOVE redirect #115

Open knavely opened 10 years ago

knavely commented 10 years ago

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

debasishg commented 10 years ago

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.

knavely commented 10 years ago

Thanks for the response. Sorry for the confusion. Matt

On Sunday, August 24, 2014, Debasish Ghosh notifications@github.com 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 .

chitralverma commented 5 years ago

Is this issue still open ?

debasishg commented 5 years ago

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