Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plan for cluster support #574

Closed
crzidea opened this issue Apr 18, 2014 · 45 comments
Closed

Plan for cluster support #574

crzidea opened this issue Apr 18, 2014 · 45 comments
Labels
Projects

Comments

@crzidea
Copy link

crzidea commented Apr 18, 2014

Is there any plan for cluster support?
Redis 3.0.0 beta has been released for a month.

@haio
Copy link

haio commented Apr 18, 2014

👍

@asilvas
Copy link

asilvas commented Jun 13, 2014

Anyone developing this support?

@albarra
Copy link

albarra commented Jun 13, 2014

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...

@andzdroid
Copy link

I've made a compatible wrapper over node_redis for redis clusters: https://github.com/koyoki/redis-party

@brycebaril
Copy link
Contributor

@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.

@albarra
Copy link

albarra commented Jun 13, 2014

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! 👍 , and as you said, the module has continuous updates and support. :)
greetings!

@vivekkrbajpai
Copy link

@brycebaril 👍

@mc0
Copy link

mc0 commented Nov 15, 2014

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?

@crzidea
Copy link
Author

crzidea commented Nov 15, 2014

@mc0
I guess connection shuold be keeped instead of just close it on_error.

@danmaz74
Copy link

@brycebaril any updates regarding Redis cluster support? I read there was a refactoring going on, but didn't see any recent updates. Thanks!

@jadbox
Copy link

jadbox commented Feb 3, 2015

+1 for cluster support

@MetaThis
Copy link

MetaThis commented Mar 2, 2015

+1

@shaharmor
Copy link

Redis cluster is out now, any chance to implement support for it now?

@thelinuxlich
Copy link

+1

3 similar comments
@alumowa
Copy link

alumowa commented Apr 6, 2015

👍

@sebbo2002
Copy link

+1

@julien51
Copy link

+1

@genediazjr
Copy link

@mranney any comments sir?

@henryoswald
Copy link

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?

@thelinuxlich
Copy link

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

@henryoswald
Copy link

Very interesting, thanks!

On Wed, Apr 29, 2015 at 12:24 PM, Alisson Cavalcante Agiani <
notifications@github.com> wrote:

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


Reply to this email directly or view it on GitHub
#574 (comment).

Henry Oswald
shareLaTeX.com co-founder

@simontabor
Copy link

I'd be happy to try and manage getting cluster support into node_redis. I think I've got a pretty good base at https://github.com/gosquared/redis-clustr (stable in production with many ops). If anyone has suggestions/would like to jump in then go ahead :)

@vivekkrbajpai
Copy link

👍

@blainsmith
Copy link
Contributor

In order to better support this project and its new group of collaborators under a new org we are trying to clean up and close issues older than 6 months. Your issue may have been fixed since the issue was open, however, if you are still experiencing a problem please re-open this issue and we will label it accordingly.

@BridgeAR
Copy link
Contributor

Reopening this as it is not resolved. @simontabor would you still be up to try getting cluster support into node_redis?

@simontabor
Copy link

Yeah. Will need to find some time - hopefully soon!

@mvtcode
Copy link

mvtcode commented Feb 27, 2017

I using redis 3.2.8 and setup nodes cluster
using this module not working:

{ ReplyError: MOVED 8238 127.0.0.1:6380
at parseError (/home/tanmv/test/node_modules/redis-parser/lib/parser.js:181:12)
at parseType (/home/tanmv/test/node_modules/redis-parser/lib/parser.js:291:14)
command: 'SET',
args: [ 'test-4', 2017-02-27T07:39:07.656Z ],
code: 'MOVED' }

{ ReplyError: MOVED 8238 127.0.0.1:6380
at parseError (/home/tanmv/test/node_modules/redis-parser/lib/parser.js:181:12)
at parseType (/home/tanmv/test/node_modules/redis-parser/lib/parser.js:291:14) command: 'GET', args: [ 'test-4' ], code: 'MOVED' }

I have found the module "Redis Cluster Client" (https://www.npmjs.com/package/redis-node-cluster), because before that I have not used so I parked it.
The ruby programming language support has examples in https://github.com/antirez/redis-rb-cluster

@sam2x
Copy link

sam2x commented May 25, 2017

no news about this ? so if I want to use the cluster feature I need to migrate to ioredis ?

@simontabor
Copy link

my earlier comment is still 100% relevant: #574 (comment). redis-clustr is stable and actively in-use with some pretty big clusters

@sam2x
Copy link

sam2x commented May 25, 2017

Ho great, it's a wrapper to this lib "It tries to be as unobtrusive as possible - mimicing the behaviour of the node_redis client.". Thanks @simontabor for the feedback. Will give a try

@Somebi
Copy link

Somebi commented Apr 11, 2019

Indeed, have to move to ioredis package because of this. Didn't knew this package is not supporting clustering. It's a fail...
Why this is a recommended package?
Have to add a bold not in the read me. That this package is not supporting clusters feature. To stop confusing end users.

@thelinuxlich
Copy link

last update was almost a year ago so I think it's safe to say this library is deprecated.

@stockholmux
Copy link
Contributor

@thelinuxlich nope. Not deprecated. We have updates that come from upstream (redis-parser and redis-commands) - it just doesn't show in this repo.

@Somebi
Copy link

Somebi commented Apr 19, 2019

Eventually i have migrated to ioredis and successfully integrated sharded cluster. Suggest using ioredis and this team to move to ioredis team, to help them if possible.

@naseemkullah
Copy link

As per https://redislabs.com/lp/node-js-redis/

Node_redis’ support for the Cluster API is provided by an additional shim, redis-clustr.

https://github.com/gosquared/redis-clustr

@minhna
Copy link

minhna commented Apr 13, 2020

it's 2020, almost 6 years since this issue opened. Hopefully there will be good news.

@thelinuxlich
Copy link

6 years ago I switched to ioredis for the cluster support

@aayushmall
Copy link

Any update on Cluster support on this?

@fcheong3b
Copy link

Any update for cluster support?

@leibale leibale added this to To do in v4 Mar 14, 2021
@leibale leibale moved this from To do to In progress in v4 May 12, 2021
@leibale leibale moved this from In progress to Done in v4 Jul 28, 2021
@leibale leibale closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v4
Done
Development

No branches or pull requests