Skip to content

Commit 3abc799

Browse files
Merge remote-tracking branch 'upstream/v5.0.10' into v5.0
2 parents 37689c6 + 70607df commit 3abc799

8 files changed

+138
-4
lines changed

source/administration/connection-pool-overview.txt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,15 @@ Settings
163163
*Default*: ``1``. See
164164
:parameter:`ShardingTaskExecutorPoolMinSize`.
165165

166-
This setting only applies to sharded deployments.
166+
Parameter only applies to sharded deployments.
167+
168+
* - :parameter:`ShardingTaskExecutorPoolMinSizeForConfigServers`
169+
170+
- .. include:: /includes/ShardingTaskExecutorPoolMinSizeForConfigServers-parameter.rst
171+
172+
*Default*: ``-1``
173+
174+
.. versionadded:: 5.0.10
167175

168176
* - :parameter:`ShardingTaskExecutorPoolMaxSize`
169177

@@ -174,8 +182,16 @@ Settings
174182
*Default*: 2\ :sup:`64` - 1. See
175183
:parameter:`ShardingTaskExecutorPoolMaxSize`.
176184

177-
This setting only applies to sharded deployments.
178-
185+
Parameter only applies to sharded deployments.
186+
187+
* - :parameter:`ShardingTaskExecutorPoolMaxSizeForConfigServers`
188+
189+
- .. include:: /includes/ShardingTaskExecutorPoolMaxSizeForConfigServers-parameter.rst
190+
191+
*Default*: ``-1``
192+
193+
.. versionadded:: 5.0.10
194+
179195
.. toctree::
180196
:titlesonly:
181197
:hidden:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. |parameter| replace:: :parameter:`ShardingTaskExecutorPoolMaxSize`
2+
.. |maximum-or-minimum| replace:: maximum
3+
4+
.. include:: /includes/ShardingTaskExecutorPoolSizeForConfigServers-parameter-example.rst
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. |parameter| replace:: :parameter:`ShardingTaskExecutorPoolMaxSize`
2+
.. |maximum-or-minimum| replace:: maximum
3+
4+
.. include:: /includes/ShardingTaskExecutorPoolSizeForConfigServers-parameter.rst
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. |parameter| replace:: :parameter:`ShardingTaskExecutorPoolMinSize`
2+
.. |maximum-or-minimum| replace:: minimum
3+
4+
.. include:: /includes/ShardingTaskExecutorPoolSizeForConfigServers-parameter-example.rst
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. |parameter| replace:: :parameter:`ShardingTaskExecutorPoolMinSize`
2+
.. |maximum-or-minimum| replace:: minimum
3+
4+
.. include:: /includes/ShardingTaskExecutorPoolSizeForConfigServers-parameter.rst
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The following example sets |parameter| to ``2`` during startup, which
2+
sets the |maximum-or-minimum| number of outbound connections each
3+
TaskExecutor connection pool can open to a configuration server to
4+
``2``:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Optional override for |parameter| to set the |maximum-or-minimum| number
2+
of outbound connections each TaskExecutor connection pool can open to a
3+
:ref:`configuration server <sharding-config-server>`.
4+
5+
When set to:
6+
7+
- ``-1``, |parameter| is used. This is the default.
8+
9+
- an integer value greater than ``-1``, overrides the
10+
|maximum-or-minimum| number of outbound connections each TaskExecutor
11+
connection pool can open to a configuration server.
12+
13+
Parameter only applies to sharded deployments.

source/reference/parameters.txt

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,39 @@ If you attempt to update ``disableSplitHorizonIPCheck`` at runtime,
21282128

21292129
mongod --setParameter maxSessions=1000
21302130

2131+
.. parameter:: oplogBatchDelayMillis
2132+
2133+
.. versionadded:: 5.0.10
2134+
2135+
|both|
2136+
2137+
*Type*: integer
2138+
2139+
*Default*: 0
2140+
2141+
The number of milliseconds to delay applying batches of oplog
2142+
operations on secondary nodes. By default, ``oplogBatchDelayMillis``
2143+
is ``0``, meaning oplog batches are applied with no delay. When there
2144+
is no delay, MongoDB may apply frequent, small oplog batches to
2145+
secondaries.
2146+
2147+
Increasing ``oplogBatchDelayMillis`` causes MongoDB to apply oplog
2148+
batches less frequently on secondaries, with each batch containing
2149+
larger amounts of data. This reduces :abbr:`IOPS (Input/Output
2150+
Operations Per Second)` on secondaries, but adds latency for writes
2151+
with write concern :writeconcern:`"majority"`.
2152+
2153+
You can only set ``oplogBatchDelayMillis`` at startup. You cannot set
2154+
``oplogBatchDelayMillis`` during runtime.
2155+
2156+
For example, run the following command to set the
2157+
``oplogBatchDelayMillis`` for a :binary:`~bin.mongod` instance to 20
2158+
milliseconds:
2159+
2160+
.. code-block:: bash
2161+
2162+
mongod --setParameter oplogBatchDelayMillis=20
2163+
21312164
.. parameter:: TransactionRecordMinimumLifetimeMinutes
21322165

21332166
.. versionadded:: 3.6
@@ -2831,7 +2864,7 @@ Sharding Parameters
28312864
and :method:`delete <db.collection.deleteOne>` operations.
28322865

28332866
For example, to set the maximum percentage to 20, you can issue the
2834-
followingduring startup:
2867+
following during startup:
28352868

28362869
.. code-block:: bash
28372870

@@ -3169,6 +3202,33 @@ Sharding Parameters
31693202

31703203
:parameter:`ShardingTaskExecutorPoolMinSize`
31713204

3205+
.. parameter:: ShardingTaskExecutorPoolMaxSizeForConfigServers
3206+
3207+
.. versionadded:: 5.0.10
3208+
3209+
Type: integer
3210+
3211+
Default: -1
3212+
3213+
|both|
3214+
3215+
.. include:: /includes/ShardingTaskExecutorPoolMaxSizeForConfigServers-parameter.rst
3216+
3217+
.. include:: /includes/ShardingTaskExecutorPoolMaxSizeForConfigServers-parameter-example.rst
3218+
3219+
.. code-block:: bash
3220+
3221+
mongos --setParameter ShardingTaskExecutorPoolMaxSizeForConfigServers=2
3222+
3223+
During runtime, you can also set the parameter with the
3224+
:dbcommand:`setParameter` command:
3225+
3226+
.. code-block:: javascript
3227+
3228+
db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMaxSizeForConfigServers: 2 } )
3229+
3230+
.. _sharding-pool-minsize-parameters:
3231+
31723232
.. parameter:: ShardingTaskExecutorPoolMinSize
31733233

31743234
Type: integer
@@ -3223,6 +3283,31 @@ Sharding Parameters
32233283
- :parameter:`ShardingTaskExecutorPoolMaxSize`
32243284
- :parameter:`warmMinConnectionsInShardingTaskExecutorPoolOnStartup`
32253285

3286+
.. parameter:: ShardingTaskExecutorPoolMinSizeForConfigServers
3287+
3288+
.. versionadded:: 5.0.10
3289+
3290+
Type: integer
3291+
3292+
Default: -1
3293+
3294+
|both|
3295+
3296+
.. include:: /includes/ShardingTaskExecutorPoolMinSizeForConfigServers-parameter.rst
3297+
3298+
.. include:: /includes/ShardingTaskExecutorPoolMinSizeForConfigServers-parameter-example.rst
3299+
3300+
.. code-block:: bash
3301+
3302+
mongos --setParameter ShardingTaskExecutorPoolMinSizeForConfigServers=2
3303+
3304+
During runtime, you can also set the parameter with the
3305+
:dbcommand:`setParameter` command:
3306+
3307+
.. code-block:: javascript
3308+
3309+
db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMinSizeForConfigServers: 2 } )
3310+
32263311
.. parameter:: ShardingTaskExecutorPoolRefreshRequirementMS
32273312

32283313
Type: integer

0 commit comments

Comments
 (0)