SERVER-137550ClosedDone
Detect when a cluster needs to recursively merge during an index build
When spilling during an index build, if the number of range iterators exceeds a certain limit we perform recursive merging on the sorted ranges, which is expensive and leads to longer lasting index builds. If we can detect when we are performing recursive merges, we will have signal that the cluster is in a sense "overloaded" and that by upgrading the instance size of the cluster we can avoid recursive merging and decrease the time spent on the index build