File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,19 @@ you may prefer to include a pause in-between iterations.
127
127
Alternatively, to mitigate the impact of :dbcommand:`cleanupOrphaned`,
128
128
you may prefer to run the command at off peak hours.
129
129
130
+ It is also possible to tune the performance impact of :dbcommand:`cleanupOrphaned`
131
+ with two server parameters :parameter:`rangeDeleterBatchSize`
132
+ and :parameter:`rangeDeleterBatchDelayMS`
133
+
134
+ To limit the number of documents deleted per batch, you can set
135
+ `rangeDeleterBatchSize` to a small value such as `32`.
136
+
137
+ To add an additional delay between batch deletions, you can set
138
+ `rangeDeleterBatchDelayMS` above the current default of `20` milliseconds.
139
+
140
+ Note that these affect all range deletion including normal
141
+ :doc:`chunk migration</core/sharding-balancer-administration/#chunk-migration-procedure>`.
142
+
130
143
.. _cleanupOrphaned-determine-range:
131
144
132
145
Determine Range
You can’t perform that action at this time.
0 commit comments