New server parameter to provision more memory for index builds during initial sync

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0, 8.0.13
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • v8.0, v7.0
    • Storage Execution 2025-07-21
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This change increases the maximum memory usage for index builds during initial sync to 10% of available RAM by default, at least 200MB, and up to 16GB. These thresholds can be tuned with the following setParameters: initialSyncIndexBuildMemoryPercentage, initialSyncIndexBuildMemoryMinMB, and initialSyncIndexBuildMemoryMaxMB.

      SERVER-102428 effectively reduces the memory allocated to the simultaneous index builds during initial sync. We should give initial sync a larger amount of memory to build indexes. There's no reason why it needs to obey the index build default memory limits.

            Assignee:
            Louis Williams
            Reporter:
            Wei Hu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: