-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.11, 3.4.0
-
Component/s: Sharding
-
None
-
Sharding
The removeShard command contains an explicit check that there aren't any other shards that are currently draining and if so, fails the command. This check precludes the scenario of quickly shrinking a cluster, which might have been exponentially grown during peak time.
The check is unnecessary, given that we already test that the balancer supports this scenario and should be removed.
NOTE: Fixing it in the 3.4 release will take advantage of the support for parallel migrations so multiple shards can drain in parallel. In versions 3.2 and older, the balancer only moves a single chunk at a time so having multiple "draining" shards only prevents chunks from jumping from one "doomed" shard to the next.
- duplicates
-
SERVER-11328 Allow concurrent draining shards
- Closed
- mentioned in
-
Page Loading...