Plan for cluster support
Is there any plan for cluster support? Redis 3.0.0 beta has been released for a month.
:+1:
Anyone developing this support?
May be we have to re-build the concept of this module. Today is completly deprecated and still it is recommended by Redis.IO site.
The problem with "cluster support" is that redis still doesn't have it on stable versions. It's on development.
The appropiate issue will be "plan for redis sentinel", i think...
I've made a compatible wrapper over node_redis for redis clusters: https://github.com/koyoki/redis-party
@albarra -- this is not deprecated at all. Chill out -- it is maintained and we're working on updating the nature of the library to be more compatible with things like sentinel and cluster.
As mentioned in other issues, Redis Sentinel and Redis Cluster support will require removing the reconnection logic from the core of this library. There is a refactor branch where I've started that work and have been rewriting the tests in a way that doesn't also combine the tests with the connection logic.
Once that is done all connection logic (sentinel, cluster, or the existing legacy reconnection logic) will all be available as separate wrappers for this library.
Sorry, what i meant is that in certain situations is deprecated, since it doesn't support HA. Of course, if you have only one instance of Redis, it's the ideal module. It works perfect! :+1: , and as you said, the module has continuous updates and support. :) greetings!
@brycebaril :+1:
I wrote a redis cluster implementation that is similar to Antirez's ruby version. It simply wraps this redis module but I'd like to see it included with this module if possible. The only change I had to make to redis/index.js1 was to make the raw error object get passed to the on_error method, pass that along when we emit the error, and allow RedisClient#max_attempts to be 0.
I know that @brycebaril is working on a refactor branch that removes the connection logic but I'm not entirely sure that that is required for getting cluster support. I'm sure I just missed the discussion on that but is there a summary for why?
@mc0
I guess connection shuold be keeped instead of just close it on_error.
@brycebaril any updates regarding Redis cluster support? I read there was a refactoring going on, but didn't see any recent updates. Thanks!
+1 for cluster support
+1
Redis cluster is out now, any chance to implement support for it now?
+1
:+1:
+1
+1
@mranney any comments sir?
We (sharelatex.com) would be interested in sponsoring this feature if that helps. I am not sure how much work it would be to develop, potentially a few other companies would pitch in?
There are already two alternative modules which support Redis 3.0 cluster and are better performant than node-redis:
https://github.com/thunks/thunk-redis https://github.com/luin/ioredis
I'm using thunk-redis and can confirm the cluster feature is working well