Skip to content

DOCS-14050 ShardingTaskExecutorPool* params are also applicable to mo… #4820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions source/includes/extracts-4.2-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,16 @@ content: |
ref: 4.2-changes-mongos-repl-connection-pool
content: |
Starting in MongoDB 4.2, MongoDB adds the parameter
:parameter:`ShardingTaskExecutorPoolReplicaSetMatching` that
determines the minimum size (can vary during runtime) of the
:binary:`~bin.mongos` instance's connection pools to each member of
the sharded cluster.

By default, for each replica set in the sharded cluster (i.e. shard
replica set and config servers), :binary:`~bin.mongos` maintains
connection pools to each replica set secondary that are at least
equal to the size of its connection pool to the primary.
:parameter:`ShardingTaskExecutorPoolReplicaSetMatching`. This
parameter determines the minimum size of the
:binary:`~bin.mongod`/:binary:`~bin.mongos` instance's
connection pool to each member of the sharded cluster. This value
can vary during runtime.

:binary:`~bin.mongod` and :binary:`~bin.mongos` maintain connection
pools to each replica set secondary for every replica set in the
sharded cluster. By default, these pools have a number of connections
that is at least the number of connections to the primary.

To modify, see :parameter:`ShardingTaskExecutorPoolReplicaSetMatching`.
---
Expand Down
12 changes: 6 additions & 6 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2757,7 +2757,7 @@ Sharding Parameters

Default: 300000 (i.e. 5 minutes)

|mongos-only|
|both|

Maximum time that :binary:`~bin.mongos` goes without communication to a
host before :binary:`~bin.mongos` drops all connections to the host.
Expand Down Expand Up @@ -2785,7 +2785,7 @@ Sharding Parameters

Default: 2

|mongos-only|
|both|

Maximum number of simultaneous initiating connections (including
pending connections in setup/refresh state) each TaskExecutor
Expand All @@ -2811,7 +2811,7 @@ Sharding Parameters

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

|mongos-only|
|both|

Maximum number of outbound connections each TaskExecutor connection
pool can open to any given :binary:`~bin.mongod` instance. The maximum
Expand Down Expand Up @@ -2885,7 +2885,7 @@ Sharding Parameters

Default: 60000 (1 minute)

|mongos-only|
|both|

Maximum time the :binary:`~bin.mongos` waits before attempting to
heartbeat a resting connection in the pool.
Expand All @@ -2909,7 +2909,7 @@ Sharding Parameters

Default: 20000 (20 seconds)

|mongos-only|
|both|

Maximum time the :binary:`~bin.mongos` waits for a heartbeat before
timing out the heartbeat.
Expand All @@ -2935,7 +2935,7 @@ Sharding Parameters

Default: "matchPrimaryNode"

|mongos-only|
|both|

The policy that determines the minimum size limit of the
:binary:`~bin.mongos` instance's connection pools to the sharded
Expand Down
4 changes: 2 additions & 2 deletions source/release-notes/4.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ Balancer State and Autosplit

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

``mongos`` Connection Pool
~~~~~~~~~~~~~~~~~~~~~~~~~~
``mongos`` / ``mongod`` Connection Pool
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Expand Down