Skip to content

Commit 88d142f

Browse files
jmd-mongoandf-mongodb
authored andcommitted
DOCS-14050 ShardingTaskExecutorPool* params are also applicable to mongod
1 parent 719001f commit 88d142f

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

source/includes/extracts-4.2-changes.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -777,15 +777,16 @@ content: |
777777
ref: 4.2-changes-mongos-repl-connection-pool
778778
content: |
779779
Starting in MongoDB 4.2, MongoDB adds the parameter
780-
:parameter:`ShardingTaskExecutorPoolReplicaSetMatching` that
781-
determines the minimum size (can vary during runtime) of the
782-
:binary:`~bin.mongos` instance's connection pools to each member of
783-
the sharded cluster.
784-
785-
By default, for each replica set in the sharded cluster (i.e. shard
786-
replica set and config servers), :binary:`~bin.mongos` maintains
787-
connection pools to each replica set secondary that are at least
788-
equal to the size of its connection pool to the primary.
780+
:parameter:`ShardingTaskExecutorPoolReplicaSetMatching`. This
781+
parameter determines the minimum size of the
782+
:binary:`~bin.mongod`/:binary:`~bin.mongos` instance's
783+
connection pool to each member of the sharded cluster. This value
784+
can vary during runtime.
785+
786+
:binary:`~bin.mongod` and :binary:`~bin.mongos` maintain connection
787+
pools to each replica set secondary for every replica set in the
788+
sharded cluster. By default, these pools have a number of connections
789+
that is at least the number of connections to the primary.
789790
790791
To modify, see :parameter:`ShardingTaskExecutorPoolReplicaSetMatching`.
791792
---

source/reference/parameters.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,7 +2715,7 @@ Sharding Parameters
27152715

27162716
Default: 300000 (i.e. 5 minutes)
27172717

2718-
|mongos-only|
2718+
|both|
27192719

27202720
Maximum time that :binary:`~bin.mongos` goes without communication to a
27212721
host before :binary:`~bin.mongos` drops all connections to the host.
@@ -2743,7 +2743,7 @@ Sharding Parameters
27432743

27442744
Default: 2
27452745

2746-
|mongos-only|
2746+
|both|
27472747

27482748
Maximum number of simultaneous initiating connections (including
27492749
pending connections in setup/refresh state) each TaskExecutor
@@ -2769,7 +2769,7 @@ Sharding Parameters
27692769

27702770
Default: 2\ :sup:`64` - 1
27712771

2772-
|mongos-only|
2772+
|both|
27732773

27742774
Maximum number of outbound connections each TaskExecutor connection
27752775
pool can open to any given :binary:`~bin.mongod` instance. The maximum
@@ -2843,7 +2843,7 @@ Sharding Parameters
28432843

28442844
Default: 60000 (1 minute)
28452845

2846-
|mongos-only|
2846+
|both|
28472847

28482848
Maximum time the :binary:`~bin.mongos` waits before attempting to
28492849
heartbeat a resting connection in the pool.
@@ -2867,7 +2867,7 @@ Sharding Parameters
28672867

28682868
Default: 20000 (20 seconds)
28692869

2870-
|mongos-only|
2870+
|both|
28712871

28722872
Maximum time the :binary:`~bin.mongos` waits for a heartbeat before
28732873
timing out the heartbeat.
@@ -2893,7 +2893,7 @@ Sharding Parameters
28932893

28942894
Default: "matchPrimaryNode"
28952895

2896-
|mongos-only|
2896+
|both|
28972897

28982898
The policy that determines the minimum size limit of the
28992899
:binary:`~bin.mongos` instance's connection pools to the sharded

source/release-notes/4.2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ Balancer State and Autosplit
546546

547547
.. include:: /includes/extracts/4.2-changes-balancer-autosplit.rst
548548

549-
``mongos`` Connection Pool
550-
~~~~~~~~~~~~~~~~~~~~~~~~~~
549+
``mongos`` / ``mongod`` Connection Pool
550+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
551551

552552
.. include:: /includes/extracts/4.2-changes-mongos-repl-connection-pool.rst
553553

0 commit comments

Comments
 (0)