-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
Sharding EMEA 2022-03-21
With the introduction of ranges, chunks distribution will become much less meaningful to evaluate whether a collection is balanced or not.
Objective of this ticket is to return orphans as part of the collStats aggregation stage's output so that users can rely on some new metric to evaluate the balancing status.
To get the actual size of a collection on a shard, some example of metrics may be dataSize - orphansSize or countDocuments - countOrphans.
- depends on
-
SERVER-63335 Add `numOrphanDocs` field to range deletion task documents
- Closed
- is depended on by
-
SERVER-65014 Use long long type for orphan count
- Closed
- related to
-
MONGOSH-1838 Account for orphan documents count in getShardDistribution() helper
- Closed