[DOCS-13901] Investigate changes in SERVER-50756: add occupied disk size to dbstats Created: 29/Sep/20  Updated: 13/Nov/23  Resolved: 02/Nov/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.9.0-alpha0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jason Price
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-50756 add occupied disk size to dbstats Closed
Participants:
Days since reply: 3 years, 13 weeks, 2 days ago
Epic Link: DOCSP-9747
Story Points: 3

 Description   

Description

Downstream Change Summary

The dbStats command now returns fields that indicate much unoccupied storage space is used by all collections, indexes, and in total. Those fields are freeStorageSize, indexFreeStorageSize, totalFreeStorageSize.

Description of Linked Ticket

There is a need to calculate the amount of occupied disk space a database is consuming. This can be useful when calculating whether a database could be physically moved to a smaller disk size. Currently, only the on-disk file size is reported by dbstats, but this includes unoccupied blocks in files.
To calculate this for WiredTiger, we can use block_reuse_bytes statistic per file, versus block_size.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 09/Nov/20 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-13901 Add occupied disk size to dbStats
Branch: master
https://github.com/mongodb/docs/commit/a0f8e26d598e17de4cb588949a7c68984700a4ae

Comment by Githook User [ 02/Nov/20 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-13901 Add occupied disk size to dbStats
Branch: v5.0
https://github.com/mongodb/docs/commit/828032a980a09a370bd8a5160dac7d2b87302c33

Generated at Thu Feb 08 08:09:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.