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

Support auto-rebalance feature in Redis Cluster #2206

Closed
Spectrumleeee opened this issue Dec 11, 2014 · 7 comments
Closed

Support auto-rebalance feature in Redis Cluster #2206

Spectrumleeee opened this issue Dec 11, 2014 · 7 comments

Comments

@Spectrumleeee
Copy link

Currently, Redis Cluster can implements auto-failover which helps us a lot. i think it can also provide such a feature : auto-rebalance according to the percentage of memory-used / maxmemory and several other factors like cpu when we encounter follower scenarios:

  1. some node captures most of data
  2. added a new master node into the Cluster .
    Although we can make it resort to client api, but if the Cluster can provide an option to make it Automatic or manual , that will be better.
    Anyway, As a user, maybe we should implement it on our own according to our specific scenario.
@antirez
Copy link
Contributor

antirez commented Dec 11, 2014

Hello, Automatic-rebalance is planned for iteration 2 of Redis Cluster, however manual rebalance already works but is fully manual, that is, you need to tell Redis Cluster from which node to what other node to move how many hash slots.

The idea for the future is:

  1. Each server adds used/free memory in the cluster bus message headers, so each node knows how other nodes are from the POV of memory usage.
  2. When nodes are not balanced, an automatic hash slot migration starts in order to fix the issue until an acceptable threshold is reached again.

We need to see Redis Cluster v1 more deployed / used / battle tested in order to start new developments, for now the focus is into supporting what we got so far. Thanks for your feedback! Closing since this is one of the fundamental feature planned for Redis developments, so for sure we'll not forget :-)

@antirez antirez closed this as completed Dec 11, 2014
@Spectrumleeee
Copy link
Author

OK, thank you!

@neopaf
Copy link

neopaf commented May 7, 2015

Thank you, Salvatore.
We're seriously planning on having Redis as a potential backup to our super-installation of Couchbase clusters.
The lack of even manual rebalance is one of show stoppers for us.
Support team on the Customer side will be super-sad if we are to tell them that "Rebalance" magic button will disappear, and the need of manual calculating of which slots go where will be required.

Please consider a two-phase process here?
I guess, I'd better create a separate issue about simple rebalance utility.

@allanwax
Copy link

allanwax commented May 8, 2015

Note for the future: When a new master is added to the cluster, it should not auto-rebalance until at least one slave is assigned to it. Otherwise there could be a failure in the migration and K-V could be lost.

@psubramanian2007
Copy link

Is the auto balancing feature available now?

@ping2balaji
Copy link

Can anyone please clarify if the auto-rebalancing feature available now?

@j-razeed
Copy link

Is this feature available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants