Skip to content

DOCS-12492 #4032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions source/reference/command/cleanupOrphaned.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ you may prefer to include a pause in-between iterations.
Alternatively, to mitigate the impact of :dbcommand:`cleanupOrphaned`,
you may prefer to run the command at off peak hours.

It is also possible to tune the performance impact of :dbcommand:`cleanupOrphaned`
with two server parameters :parameter:`rangeDeleterBatchSize`
and :parameter:`rangeDeleterBatchDelayMS`

To limit the number of documents deleted per batch, you can set
`rangeDeleterBatchSize` to a small value such as `32`.

To add an additional delay between batch deletions, you can set
`rangeDeleterBatchDelayMS` above the current default of `20` milliseconds.

Note that these affect all range deletion including normal
:doc:`chunk migration</core/sharding-balancer-administration/#chunk-migration-procedure>`.

.. _cleanupOrphaned-determine-range:

Determine Range
Expand Down