SERVER-42224 will have added maxValidateMBperSec as a server parameter and set it up as accessible to the validation command code path.
This task is to actually start using maxValidateMBperSec to throttle the progress of a collection validation operation. Throttling should only occur when {background:true} is requested. We should put the thread to sleep after it processes maxValidateMBperSec MBs worth of data, if it take less than a second to reach maxValidateMBperSec MBs. We should check for interrupt after sleeping.
- depends on
-
SERVER-42224 Add a server parameter maxValidateMBPerSec to specify max validate throughput per validate command in order to limit I/O and CPU usage
- Closed
- is depended on by
-
SERVER-42357 Periodically release locks during collection validation and check for interrupts
- Closed