[SERVER-62554] Add orphans info in `collStats` aggregation stage output Created: 12/Jan/22  Updated: 29/Oct/23  Resolved: 14/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: pm-2323-orphans-tracking
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File sharded-aggregation.json     File sharded-runCommand.json     File unsharded-aggregation.json     File unsharded-runCommand.json    
Issue Links:
Depends
depends on SERVER-63335 Add `numOrphanDocs` field to range de... Closed
is depended on by SERVER-65014 Use long long type for orphan count Closed
Documented
is documented by DOCS-15171 Investigate changes in SERVER-62554: ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-03-21
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 11/Mar/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-62554 Add orphans info in `collStats` aggregation stage output
Branch: master
https://github.com/mongodb/mongo/commit/f690e6856e9cbc7ee1bc3bcf20dfa4eed6621e2a

Generated at Thu Feb 08 05:55:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.