Skip to content

DOCS-14078 update rangeDeleterBatchSize default value #4786

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

Merged
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
11 changes: 5 additions & 6 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3274,28 +3274,27 @@ Sharding Parameters

Type: Non-negative integer

Default: 0
Default: 128

The maximum number of documents in each batch to delete during the
cleanup stage of :ref:`chunk migration <chunk-migration-procedure>`
(or the :dbcommand:`cleanupOrphaned` command).

The default value of ``0`` indicates that the system chooses an
appropriate value, generally 128 documents.
A value of ``0`` indicates that the system chooses the default value.

The following sets the :parameter:`rangeDeleterBatchSize` to 100
The following example sets :parameter:`rangeDeleterBatchSize` to 32
documents:

.. code-block:: sh

mongod --setParameter rangeDeleterBatchSize=100
mongod --setParameter rangeDeleterBatchSize=32

The parameter may also be set using the :dbcommand:`setParameter`
command:

.. code-block:: javascript

db.adminCommand( { setParameter: 1, rangeDeleterBatchSize: 100 } )
db.adminCommand( { setParameter: 1, rangeDeleterBatchSize: 32 } )

.. parameter:: skipShardingConfigurationChecks

Expand Down