Skip to content

Commit e8abb8b

Browse files
jason-price-mongodbjason-price-mongodb
authored andcommitted
DOCSP-25925-migrationConcurrency (BACKPORT) (#2495)
* 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-25927 Backport: Document new server parameter: migrationConcurrency --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 524e153 commit e8abb8b

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
@@ -3014,6 +3014,40 @@ Sharding Parameters
30143014

30153015
db.adminCommand( { setParameter: 1, chunkDefragmentationThrottlingMS: 10 } )
30163016

3017+
.. parameter:: chunkMigrationConcurrency
3018+
3019+
*Available starting in MongoDB 6.0.5 (and 5.0.16)*
3020+
3021+
*Type*: integer
3022+
3023+
*Default*: 1
3024+
3025+
|both|
3026+
3027+
Specifies an integer that sets the number of threads on the source
3028+
shard and the receiving shard for :ref:`chunk migration
3029+
<migrate-chunks-sharded-cluster>`.
3030+
3031+
Increasing the concurrency improves chunk migration performance, but
3032+
also increases the workload and disk IOPS usage on the the source
3033+
shard and the receiving shard.
3034+
3035+
Maximum value is 500. You should typically use fewer than 32 threads
3036+
unless you are using NVMe (Non-Volatile Memory Express) disks.
3037+
3038+
The following example sets ``chunkMigrationConcurrency`` to ``5``:
3039+
3040+
.. code-block:: bash
3041+
3042+
mongod --setParameter chunkMigrationConcurrency=5
3043+
3044+
During runtime, you can also set the parameter with the
3045+
:dbcommand:`setParameter` command:
3046+
3047+
.. code-block:: javascript
3048+
3049+
db.adminCommand( { setParameter: 1, chunkMigrationConcurrency: 5 } )
3050+
30173051
.. parameter:: disableResumableRangeDeleter
30183052

30193053
.. versionadded:: 4.4

0 commit comments

Comments
 (0)