Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11342

Implement the background compaction server

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: Compaction
    • Labels:
      None
    • 8
    • StorEng - 2023-08-08

      The background compaction server works as shown below:

      • Find the next table to compact.
        • This can be done using a cursor on the metadata file and processing the files in order
      • If compaction should be executed on the selected table, compact it.
        • For now, this means calling the session API compact on the selected table. This will be improved with WT-11343.
      • Go back to the first step.

      Tasks:

      • Create the internal thread behind the background compaction server
      • Implement the background compaction algorithm
      • Add the relevant statistics

      Definition of done:

      • The background compaction server tries to compact the database files continuously when enabled
      • The background compaction server starts/stops as soon as it is requested by the application
      • The relevant statistics and logs are generated

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: