[SERVER-53618] add collStats for time-series collections Created: 06/Jan/21  Updated: 29/Oct/23  Resolved: 13/Jan/21

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

Type: Task Priority: Major - P3
Reporter: Geert Bosch Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-01-25
Participants:

 Description   

Unlike for regular read-only views, it makes sense for time-series collections to support the collStats command. Most of the stats would come from the actual bucket collection, except for count (unfortunately it's not currently possible to store that for a time-series collection), the derived avgObjSize and storage engine stats, such as the very verbose wiredTiger section: for that level of detail it makes sense to directly get stats from the buckets collection.

Additional stats could be bucketCount (which is count of the buckets collection), and avgBucketSize and possibly bucketNs or similar. A question is whether to include execution stats, such as the number of insert operations vs updates, measurements per commit, buckets closed due to size/count/time constraints, new buckets created due to time going backward, new metadata etc. Some of the more global bucket catalog information may be better included in a new serverStatus section instead.



 Comments   
Comment by Githook User [ 13/Jan/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-53618 Add collStats for time-series collections
Branch: master
https://github.com/mongodb/mongo/commit/b196c637c409ab9d84df96fe8f3595cea9e5b6fa

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