From 37aa120047b41829a3f495db8475ec91651448d9 Mon Sep 17 00:00:00 2001 From: Joseph Dougherty Date: Wed, 6 Jan 2021 09:46:41 -0500 Subject: [PATCH] DOCS-14050 ShardingTaskExecutorPool* params are also applicable to mongod --- source/includes/extracts-4.2-changes.yaml | 19 ++++++++++--------- source/reference/parameters.txt | 12 ++++++------ source/release-notes/4.2.txt | 4 ++-- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/source/includes/extracts-4.2-changes.yaml b/source/includes/extracts-4.2-changes.yaml index 276c6df3c74..8c3d0d93bac 100644 --- a/source/includes/extracts-4.2-changes.yaml +++ b/source/includes/extracts-4.2-changes.yaml @@ -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`. --- diff --git a/source/reference/parameters.txt b/source/reference/parameters.txt index 1a204e26f61..72fd2c4a657 100644 --- a/source/reference/parameters.txt +++ b/source/reference/parameters.txt @@ -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. @@ -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 @@ -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 @@ -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. @@ -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. @@ -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 diff --git a/source/release-notes/4.2.txt b/source/release-notes/4.2.txt index c87f8f41d81..0cdf92c4108 100644 --- a/source/release-notes/4.2.txt +++ b/source/release-notes/4.2.txt @@ -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