Skip to content

Commit 06686b0

Browse files
jeff-allen-mongojason-price-mongodbjason-price-mongodb
authored
DOCS-15911-update-chunkMigrationConcurrency (BACKPORT) (#2613) (#2678)
* DOCS-15911-update-chunkMigrationConcurrency (#2604) * DOCS-15911-update-chunkMigrationConcurrency * DOCS-15911-update-chunkMigrationConcurrency * DOCS-15911-update-chunkMigrationConcurrency * DOCS-15911-update-chunkMigrationConcurrency * DOCS-15911-update-chunkMigrationConcurrency --------- * DOCS-15911-update-chunkMigrationConcurrency --------- Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent dd18e69 commit 06686b0

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

source/reference/command/serverStatus.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4221,6 +4221,16 @@ shardingStatistics
42214221

42224222
.. versionadded:: 4.4
42234223

4224+
.. serverstatus:: shardingStatistics.chunkMigrationConcurrency
4225+
4226+
The number of threads on the source shard and the receiving shard for
4227+
performing :ref:`chunk migration <migrate-chunks-sharded-cluster>`
4228+
operations.
4229+
4230+
*Only present when run on a shard.*
4231+
4232+
*Available starting in MongoDB 5.0.15.*
4233+
42244234
.. serverstatus:: shardingStatistics.catalogCache
42254235

42264236
A document with statistics about the cluster's routing information cache.

source/reference/parameters.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,6 +2722,49 @@ Sharding Parameters
27222722
``AsyncRequestsSenderUseBaton`` and always enables the performance
27232723
enhancement controlled by the parameter.
27242724

2725+
.. parameter:: chunkMigrationConcurrency
2726+
2727+
*Available starting in MongoDB 5.0.15.*
2728+
2729+
*Type*: integer
2730+
2731+
*Default*: 1
2732+
2733+
|both|
2734+
2735+
Specifies an integer that sets the number of threads on the source
2736+
shard and the receiving shard for :ref:`chunk migration
2737+
<migrate-chunks-sharded-cluster>`.
2738+
2739+
Increasing the concurrency improves chunk migration performance, but
2740+
also increases the workload and disk IOPS usage on the the source
2741+
shard and the receiving shard.
2742+
2743+
Maximum value is 500.
2744+
2745+
You should typically use half the total number of CPU cores as
2746+
threads. For example, if the total is 16 cores, set
2747+
``chunkMigrationConcurrency`` to 8 threads (or fewer).
2748+
2749+
If ``chunkMigrationConcurrency`` is greater than ``1``, the
2750+
``_secondaryThrottle`` configuration setting is ignored. The
2751+
``_secondaryThrottle`` setting determines when the chunk migration
2752+
proceeds with the next document in the chunk. For details, see
2753+
:ref:`chunk-migration-replication`.
2754+
2755+
The following example sets ``chunkMigrationConcurrency`` to ``5``:
2756+
2757+
.. code-block:: bash
2758+
2759+
mongod --setParameter chunkMigrationConcurrency=5
2760+
2761+
During runtime, you can also set the parameter with the
2762+
:dbcommand:`setParameter` command:
2763+
2764+
.. code-block:: javascript
2765+
2766+
db.adminCommand( { setParameter: 1, chunkMigrationConcurrency: 5 } )
2767+
27252768
.. parameter:: disableResumableRangeDeleter
27262769

27272770
.. versionadded:: 4.4

0 commit comments

Comments
 (0)