Skip to content

Commit c002abe

Browse files
jmd-mongoandf-mongodb
authored andcommitted
DOCS-14050 ShardingTaskExecutorPool* params are also applicable to mongod
1 parent c0a59a3 commit c002abe

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
@@ -2119,7 +2119,7 @@ Sharding Parameters
21192119

21202120
Default: 300000 (i.e. 5 minutes)
21212121

2122-
|mongos-only|
2122+
|both|
21232123

21242124
Maximum time that :binary:`~bin.mongos` goes without communication to a
21252125
host before :binary:`~bin.mongos` drops all connections to the host.
@@ -2147,7 +2147,7 @@ Sharding Parameters
21472147

21482148
Default: 2
21492149

2150-
|mongos-only|
2150+
|both|
21512151

21522152
Maximum number of simultaneous initiating connections (including
21532153
pending connections in setup/refresh state) each TaskExecutor
@@ -2173,7 +2173,7 @@ Sharding Parameters
21732173

21742174
Default: 2\ :sup:`64` - 1
21752175

2176-
|mongos-only|
2176+
|both|
21772177

21782178
Maximum number of outbound connections each TaskExecutor connection
21792179
pool can open to any given :binary:`~bin.mongod` instance. The maximum
@@ -2233,7 +2233,7 @@ Sharding Parameters
22332233

22342234
Default: 60000 (1 minute)
22352235

2236-
|mongos-only|
2236+
|both|
22372237

22382238
Maximum time the :binary:`~bin.mongos` waits before attempting to
22392239
heartbeat a resting connection in the pool.
@@ -2257,7 +2257,7 @@ Sharding Parameters
22572257

22582258
Default: 20000 (20 seconds)
22592259

2260-
|mongos-only|
2260+
|both|
22612261

22622262
Maximum time the :binary:`~bin.mongos` waits for a heartbeat before
22632263
timing out the heartbeat.
@@ -2283,7 +2283,7 @@ Sharding Parameters
22832283

22842284
Default: "matchPrimaryNode"
22852285

2286-
|mongos-only|
2286+
|both|
22872287

22882288
The policy that determines the minimum size limit of the
22892289
: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)