Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13901

Investigate changes in SERVER-50756: add occupied disk size to dbstats

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0-alpha0
    • manual, Server
    • None
    • 3
    • ServerDocs2020: Oct20 - Oct27, ServerDocs2020: Oct27 - Nov3
    • true

    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.)

      Attachments

        Issue Links

          Activity

            People

              jason.price@mongodb.com Jason Price
              backlog-server-pm Backlog - Core Eng Program Management Team
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 12 weeks, 6 days ago