[SERVER-42037] Expose WiredTiger block-manager stats with scale support Created: 02/Jul/19  Updated: 29/Oct/23  Resolved: 10/Jan/20

Status: Closed
Project: Core Server
Component/s: Diagnostics, Storage, WiredTiger
Affects Version/s: 4.0.10
Fix Version/s: 4.3.3

Type: Improvement Priority: Minor - P4
Reporter: Luke Prochazka Assignee: Daniel Ernst
Resolution: Fixed Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-13334 Investigate changes in SERVER-42037: ... Closed
Problem/Incident
Related
related to SERVER-50491 Frequent schema changes due to freeSt... Closed
related to SERVER-55652 dbStats command can fail if an index ... Closed
related to SERVER-50756 add occupied disk size to dbstats Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-12-16, Execution Team 2019-12-30, Execution Team 2020-01-13, Execution Team 2019-12-30
Participants:
Case:
Linked BF Score: 50

 Description   

Presently the commands db.stats() and db.collection.stats() both accept scale parameters. The WiredTiger stats reported by db.collection.stats() are hard coded by description and value to denote units in bytes only.

This request is to expose some WiredTiger statistics by mapping them directly into a db.collection.stats() method to support the scale option.

Notably the WiredTiger "block-manager" stats of interest (but not limited to):

  • db.collection.stats( { scale: 1 }).storageSize maps to "wiredTiger"."block-manager"."file size in bytes"
  • db.collection.stats( { scale: 1 }).freeListSize maps to "wiredTiger"."block-manager"."file bytes available for reuse"

 

 



 Comments   
Comment by Githook User [ 14/Jan/20 ]

Author:

{'name': 'Daniel Ernst', 'email': 'daniel.ernst@mongodb.com'}

Message: SERVER-42037 Add requires_persistence to freeStorageSize jstest
Branch: master
https://github.com/mongodb/mongo/commit/cadd9e64d3cfb405b3e5231e873729f12d315e35

Comment by Githook User [ 10/Jan/20 ]

Author:

{'name': 'Daniel Ernst', 'email': 'daniel.ernst@mongodb.com'}

Message: SERVER-42037 Add freeListSize collection stat with scale support
Branch: master
https://github.com/mongodb/mongo/commit/989d23805572e6db103b64f3de76ffa7359a00cd

Generated at Thu Feb 08 04:59:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.