Skip to content

Commit fa9262a

Browse files
Merge remote-tracking branch 'upstream/v4.4.16' into v4.4
2 parents d8b6bd0 + bb74259 commit fa9262a

8 files changed

+104
-3
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:: 4.4.16
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:: 4.4.16
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: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,6 +2947,33 @@ Sharding Parameters
29472947

29482948
:parameter:`ShardingTaskExecutorPoolMinSize`
29492949

2950+
.. parameter:: ShardingTaskExecutorPoolMaxSizeForConfigServers
2951+
2952+
.. versionadded:: 4.4.16
2953+
2954+
Type: integer
2955+
2956+
Default: -1
2957+
2958+
|both|
2959+
2960+
.. include:: /includes/ShardingTaskExecutorPoolMaxSizeForConfigServers-parameter.rst
2961+
2962+
.. include:: /includes/ShardingTaskExecutorPoolMaxSizeForConfigServers-parameter-example.rst
2963+
2964+
.. code-block:: bash
2965+
2966+
mongos --setParameter ShardingTaskExecutorPoolMaxSizeForConfigServers=2
2967+
2968+
During runtime, you can also set the parameter with the
2969+
:dbcommand:`setParameter` command:
2970+
2971+
.. code-block:: javascript
2972+
2973+
db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMaxSizeForConfigServers: 2 } )
2974+
2975+
.. _sharding-pool-minsize-parameters:
2976+
29502977
.. parameter:: ShardingTaskExecutorPoolMinSize
29512978

29522979
Type: integer
@@ -3001,6 +3028,31 @@ Sharding Parameters
30013028
- :parameter:`ShardingTaskExecutorPoolMaxSize`
30023029
- :parameter:`warmMinConnectionsInShardingTaskExecutorPoolOnStartup`
30033030

3031+
.. parameter:: ShardingTaskExecutorPoolMinSizeForConfigServers
3032+
3033+
.. versionadded:: 4.4.16
3034+
3035+
Type: integer
3036+
3037+
Default: -1
3038+
3039+
|both|
3040+
3041+
.. include:: /includes/ShardingTaskExecutorPoolMinSizeForConfigServers-parameter.rst
3042+
3043+
.. include:: /includes/ShardingTaskExecutorPoolMinSizeForConfigServers-parameter-example.rst
3044+
3045+
.. code-block:: bash
3046+
3047+
mongos --setParameter ShardingTaskExecutorPoolMinSizeForConfigServers=2
3048+
3049+
During runtime, you can also set the parameter with the
3050+
:dbcommand:`setParameter` command:
3051+
3052+
.. code-block:: javascript
3053+
3054+
db.adminCommand( { setParameter: 1, ShardingTaskExecutorPoolMinSizeForConfigServers: 2 } )
3055+
30043056
.. parameter:: ShardingTaskExecutorPoolRefreshRequirementMS
30053057

30063058
Type: integer

0 commit comments

Comments
 (0)