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

cluster support?

Open ghost opened this issue 12 years ago • 6 comments

Are there any plans to add support for connecting to a redis cluster? (Establish connections to all servers and select server based on a key hash)

ghost avatar Sep 02 '13 16:09 ghost

Hi @sergeyzavadski,

Having support for client-side sharding has been on my wishlist for quite a long time, and I say wishlist instead of todo-list simply because I have never had the time to sit down and think of how to modify the library to implement such a feature but it is definitely something I would love to have and to tell the truth I still hope to receive some contributions in this area. Recently I have also started thinking if it would make sense to have client-side sharding now that the redis-cluster project is going to become stable in a reasonable timeframe, but the changes needed to implement them are comparable so having both would probably be worth the effort.

If there is someone willing to take up the task I'd be glad to join the effort :-)

nrk avatar Sep 02 '13 18:09 nrk

use twemproxy

2013/9/3, Daniele Alessandri [email protected]:

Hi @sergeyzavadski,

Having support for client-side sharding has been on my wishlist for quite a long time, and I say wishlist instead of todo-list simply because I have never had the time to sit down and think of how to modify the library to implement such a feature but it is definitely something I would love to have and to tell the truth I still hope to receive some contributions in this area. Recently I have also started thinking if it would make sense to have client-side sharding now that the redis-cluster project is going to become stable in a reasonable timeframe, but the changes needed to implement them are comparable so having both would probably be worth the effort.

If there is someone willing to take up the task I'd be glad to join the effort :-)


Reply to this email directly or view it on GitHub: https://github.com/nrk/redis-lua/issues/28#issuecomment-23673838

jinhao avatar Sep 02 '13 22:09 jinhao

@jinhao sure twemproxy is a valid and tested alternative in most scenarios especially for the short term, but that doesn't change the fact that we'll need to add support for redis-cluster in the near future and many of the changes required to support redis-cluster in the library, if properly implemented, can be reused to add client-side sharding too.

nrk avatar Sep 03 '13 08:09 nrk

@nrk in my option, if redis-cluster is ready in prodoction,it will support the function we do in client-side sharding, if you really want to do this, use conhash and hiredis, it has no difficulty。

jinhao avatar Sep 03 '13 10:09 jinhao

Redis-cluster has beed supported after redis 3.0+. I use it in python.

Are there any plans to support it?

ghost avatar Dec 30 '15 03:12 ghost

@nrk what's the status on cluster support? does it mean that one cannot use redis-lua with AWS ElastiCache?

elad avatar Oct 31 '16 15:10 elad