SERVER-132685ClosedDuplicate

Incrementally spill sorter data when using container-based spilling

Currently all of the sorted data is spilled in one burst of work, which can overwhelm the system and cause replication lag spikes that interfere with the user's foreground workload. We should instead incrementally spill the sorter data over the course of the collection scan.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.