[SERVER-9456] Add a command and shell helper to check if a collection is fully balanced Created: 25/Apr/13 Updated: 16/May/17 Resolved: 16/May/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding, Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Stennie Steneker (Inactive) | Assignee: | Kaloian Manassiev |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
Add a new command and a corresponding shell helper sh.isBalanced(collection) to check if a collection is fully balanced and that the balancer won't take any action on it. This would take into account the Migration Thresholds for balancing and determine if a collection is currently balanced. |
| Comments |
| Comment by Kaloian Manassiev [ 16/May/17 ] |
|
Given the transient nature of what it means for a collection to be balanced, such as auto-split, zones, shard addition and removal, we do not see a good use case for supporting such a command. The time would be better invested into making the balancer as seamless and as non-intrusive as possible, rather than exposing more insight into its run-time state. In the meantime, we have the balancer start and stop commands, which allow the balancer to be controlled in case it interferes with live workload. |