Skip to content

Commit 0aac37f

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
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]>
1 parent 79f3a59 commit 0aac37f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

source/reference/parameters.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,40 @@ Sharding Parameters
30643064

30653065
db.adminCommand( { setParameter: 1, chunkDefragmentationThrottlingMS: 10 } )
30663066

3067+
.. parameter:: chunkMigrationConcurrency
3068+
3069+
.. versionadded:: 6.3
3070+
3071+
*Type*: integer
3072+
3073+
*Default*: 1
3074+
3075+
|both|
3076+
3077+
Specifies an integer that sets the number of threads on the source
3078+
shard and the receiving shard for :ref:`chunk migration
3079+
<migrate-chunks-sharded-cluster>`.
3080+
3081+
Increasing the concurrency improves chunk migration performance, but
3082+
also increases the workload and disk IOPS usage on the the source
3083+
shard and the receiving shard.
3084+
3085+
Maximum value is 500. You should typically use fewer than 32 threads
3086+
unless you are using NVMe (Non-Volatile Memory Express) disks.
3087+
3088+
The following example sets ``chunkMigrationConcurrency`` to ``5``:
3089+
3090+
.. code-block:: bash
3091+
3092+
mongod --setParameter chunkMigrationConcurrency=5
3093+
3094+
During runtime, you can also set the parameter with the
3095+
:dbcommand:`setParameter` command:
3096+
3097+
.. code-block:: javascript
3098+
3099+
db.adminCommand( { setParameter: 1, chunkMigrationConcurrency: 5 } )
3100+
30673101
.. parameter:: disableResumableRangeDeleter
30683102

30693103
.. versionadded:: 4.4

source/release-notes/6.3.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ Starting in MongoDB 6.3, these server parameters were added:
8282
the establishment of slow server connections.
8383
- :parameter:`connectionAcquisitionToWireLoggingRate` determines when an
8484
event is added to the log for connection acquisitions.
85+
- :parameter:`chunkMigrationConcurrency` sets the number of threads on
86+
the source shard and the receiving shard for migrating chunks.
8587

8688
Time Series Collection Parameters
8789
---------------------------------

0 commit comments

Comments
 (0)