You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/12/09 08:39:14 UTC
[GitHub] [couchdb] alkmim opened a new issue #3865: Shard Rebalance Command
alkmim opened a new issue #3865:
URL: https://github.com/apache/couchdb/issues/3865
## Summary
In the "Moving Shard" section of the documentation (https://docs.couchdb.org/en/stable/cluster/sharding.html#moving-a-shard), it says that "To balance the distribution of shards from existing databases, they must be moved manually."
## Desired Behaviour
In a nutshell, the behavior would be pretty close to what is done on Gluster (See: https://docs.gluster.org/en/latest/Administrator-Guide/Managing-Volumes/#rebalancing-volumes)
Whenever a node is added or removed from the cluster or whenever the `q` or `n` parameter are changed, the user could run a command (or REST call) that would rebalance the entire cluster or a specific database.
In the perfect world, this command could be even called automatically whenever we add or remove a new node or change the `q` or `n` parameters.
## Possible Solution
Unfortunately, I am new to couchDB, so I am not familiar with the codebase.
## Additional context
A couple of reasons why this is important:
- Moving shards manually is very error prone
- Moving shards manually is time consuming.
- The current behavior can lead to data loss/inconsistencies if done incorrectly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org