Skip to content

Commit 48b4814

Browse files
niccottrellkay-kim
authored andcommitted
DOCS-12492: Added section about controlling cleanupOrphaned impact
Moved section and linked to chunk migration page
1 parent 2f336ff commit 48b4814

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/reference/command/cleanupOrphaned.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ you may prefer to include a pause in-between iterations.
127127
Alternatively, to mitigate the impact of :dbcommand:`cleanupOrphaned`,
128128
you may prefer to run the command at off peak hours.
129129

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+
130143
.. _cleanupOrphaned-determine-range:
131144

132145
Determine Range

0 commit comments

Comments
 (0)