[SERVER-53908] Aggregate the donor approxBytesToCopy and approxDocumentsToCopy values and report to recipients Created: 20/Jan/21  Updated: 29/Oct/23  Resolved: 25/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: Lamont Nelson Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-autocommits
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-53907 Donors should report approxBytesToClo... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-02-22, Sharding 2021-03-08
Participants:
Story Points: 1

 Description   

Should add the aggregated value in config collection document where minFetchTimestamp is stored.



 Comments   
Comment by Githook User [ 25/Feb/21 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-53908 Aggregate the donor approxBytesToCopy and approxDocumentsToCopy values and report to recipients
Branch: master
https://github.com/mongodb/mongo/commit/a60da4bf9dd00eb4946eb703d2f6b9ff85861f76

Comment by Lamont Nelson [ 16/Feb/21 ]

Note that we had decided to do the calculation based on the number of recipients in this ticket since the coordinator has this information readily available. The value reported by each donor in SERVER-53907 is the true value reported by $collStats.storageStats for that process.

This is referring to this part of the spec:

The initial value for the approxDocumentsToCopy and approxBytesToCopy metrics are calculated as follows.
approxDocumentsToCopy = 
[sum of $collStats.storageStats.count across all donor shards] / [# recipient shards]
approxBytesToCopy = 
[sum of $collStats.storageStats.size across all donor shards] / [# recipient shards]

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