Skip to content

Commit e8f8ace

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-25925-migrationConcurrency (BACKPORT) (#2502)
* DOCSP-25925-migrationConcurrency (#2144) * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency Co-authored-by: jason-price-mongodb <[email protected]> * DOCSP-25925-migrationConcurrency * DOCSP-25925-migrationConcurrency --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent c6cbd35 commit e8f8ace

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

source/reference/parameters.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,40 @@ Sharding Parameters
27122712
``AsyncRequestsSenderUseBaton`` and always enables the performance
27132713
enhancement controlled by the parameter.
27142714

2715+
.. parameter:: chunkMigrationConcurrency
2716+
2717+
*Available starting in MongoDB 5.0.16*
2718+
2719+
*Type*: integer
2720+
2721+
*Default*: 1
2722+
2723+
|both|
2724+
2725+
Specifies an integer that sets the number of threads on the source
2726+
shard and the receiving shard for :ref:`chunk migration
2727+
<migrate-chunks-sharded-cluster>`.
2728+
2729+
Increasing the concurrency improves chunk migration performance, but
2730+
also increases the workload and disk IOPS usage on the the source
2731+
shard and the receiving shard.
2732+
2733+
Maximum value is 500. You should typically use fewer than 32 threads
2734+
unless you are using NVMe (Non-Volatile Memory Express) disks.
2735+
2736+
The following example sets ``chunkMigrationConcurrency`` to ``5``:
2737+
2738+
.. code-block:: bash
2739+
2740+
mongod --setParameter chunkMigrationConcurrency=5
2741+
2742+
During runtime, you can also set the parameter with the
2743+
:dbcommand:`setParameter` command:
2744+
2745+
.. code-block:: javascript
2746+
2747+
db.adminCommand( { setParameter: 1, chunkMigrationConcurrency: 5 } )
2748+
27152749
.. parameter:: disableResumableRangeDeleter
27162750

27172751
.. versionadded:: 4.4

0 commit comments

Comments
 (0)