POC rate-limit primary-driven index build collection scan

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-06-22, Storage Execution 2026-07-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Adds two runtime-settable server parameters to throttle the collection scan phase of background (primary-driven/hybrid) index builds, to reduce foreground cache pressure:

      • primaryDrivenIndexBuildScanThrottleBytes (default 0 = disabled)
      • primaryDrivenIndexBuildScanThrottleSleepMillis (default 5)

      When enabled, the scan loop in _doCollectionScan accumulates bytes inserted into the bulk builder and performs an interruptible sleep each time the byte threshold is reached. Foreground builds are unaffected.

      Anything in this description will be included in the commit message. Replace or delete this text
      before merging. Add links to testing in the comments of the PR.

            Assignee:
            Alex Sarkesian
            Reporter:
            Alex Sarkesian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: