-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
Create a new command called removeShardStatus to report those collections and databases that must be moved out from all the draining shards before those shards are completely removed from the sharded cluster.
In particular, the response must include the following 3 lists of elements per every draining shard:
- "databasesWithShardAsPrimary": Will contain all the databases whose primary shard is the draining shard.
- "unshardedCollections": Will contain all the unsharded collections living on the draining shard.
- "shardedCollections": Will contain all the sharded collections with chunks living on the draining shard. Should include also the balancerStatus of the collection and the number of jumbo chunks on the given shard.
This is an example of the desired output having 2 shards in draining mode:
[ { "shard":"atlas-2m11gv-shard-2", "databasesWithShardAsPrimary": [ { "name": "aircraft", "numberOfCollectionsToMove": 3 } ], "shardedCollections": [ { "name": "aircraft.concorde", "balancerStatus": "enabled", "numberOfJumboChunks": 0 }, { "name": "aircraft.B787", "balancerStatus": "disabled", "numberOfJumboChunks": 0 } ], "unshardedCollections": [ { "name": "aircraft.A320", }, { "name": "airport.DCA", }, { "name": "airport.BWI", } ] }, { "shard":"atlas-2m11gv-shard-3", "databasesWithShardAsPrimary": [ { "name": "airport", "numberOfCollectionsToMove": 4 } ], "shardedCollections": [ { "name": "aircraft.concorde", "balancerStatus": "enabled", "numberOfJumboChunks": 1 }, { "name": "aircraft.B787", "balancerStatus": "disabled", "numberOfJumboChunks": 0 } ], "unshardedCollections": [ { "name": "airport.EWR", }, { "name": "airport.IAD", }, ] } ]
- is depended on by
-
SERVER-92102 Report the data size per every collection on removeShardStatus
- Closed
-
SERVER-92103 Consider that removeShardStatus response may reach the max BSON size
- Closed
-
SERVER-92104 removeShardStatus command should return a cursor
- Closed