Add compact configuration to override the 90/10 space requirement

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: APIs, Compaction
    • None
    • Storage Engines - Persistence
    • SE Persistence backlog
    • 5

      Current Behavior

      Compaction uses a first-fit allocation with hardcoded thresholds that determine when compaction is worthwhile:

      If 20% of the file space is available in the first 80% of the file, compact the last 20%
      If 10% of the file space is available in the first 90% of the file, compact the last 10%

      Compact is skipped if neither of these are met.

      This is a pain point for customers with large collections as a 1TB collection could have 100GB of free space available.

      Proposed solution

      a. Add configuration options to allow users to specify custom compaction thresholds:

      compact=(threshold_percent=10)
      

      b. Add a force mode that is generally more aggressive.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Sean Watt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: