scala-redis
scala-redis copied to clipboard
cluster MOVE redirect
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:
- as in the example create the redis cluster r with 3 nodes: localhost:7000, localhost:7001, localhost:7002.
- r.lpush(1,"hi") -- worked
- 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
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.
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 .
Is this issue still open ?
Yeah .. it's still open .. unfortunately I don't have any time to implement redis cluster spec. PRs welcome though :-)