From 93a350137944121564bb38ec13cb6b621d9f07e5 Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Thu, 17 Jul 2025 11:58:46 -0700 Subject: [PATCH 1/5] add callout for minpoolsize --- .../connect/connection-options/connection-pools.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/connect/connection-options/connection-pools.txt b/source/connect/connection-options/connection-pools.txt index f70abd878..78b4db532 100644 --- a/source/connect/connection-options/connection-pools.txt +++ b/source/connect/connection-options/connection-pools.txt @@ -165,6 +165,18 @@ object: minPoolSize: 10 }); +.. note:: + + A ``MongoClient`` configured with ``maxIdleTimeMS`` and ``minPoolSize`` + set to ``0`` is optimal for workloads with sustained periods of low activity. + This configuration allows the connection pool to close unused connections + during periods of inactivity. + + In versions prior to 6.18.0, idle connections were not cleaned up when + ``minPoolSize`` was set to ``0``. Starting in version 6.18.0, the connection + pool correctly cleans up idle connections regardless of the ``minPoolSize`` + setting. + .. _node-connection-pool-max-idle-time: maxIdleTimeMS From 9bff7fcff905a4c9fb4581f99eafb7062fc1a001 Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Thu, 17 Jul 2025 12:01:11 -0700 Subject: [PATCH 2/5] vale edit --- source/connect/connection-options/connection-pools.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/connect/connection-options/connection-pools.txt b/source/connect/connection-options/connection-pools.txt index 78b4db532..cce0fa2d3 100644 --- a/source/connect/connection-options/connection-pools.txt +++ b/source/connect/connection-options/connection-pools.txt @@ -172,7 +172,7 @@ object: This configuration allows the connection pool to close unused connections during periods of inactivity. - In versions prior to 6.18.0, idle connections were not cleaned up when + In versions earlier than 6.18.0, idle connections were not cleaned up when ``minPoolSize`` was set to ``0``. Starting in version 6.18.0, the connection pool correctly cleans up idle connections regardless of the ``minPoolSize`` setting. From 881d4d125ca574e6805725995299ebd17b6eebbf Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Thu, 17 Jul 2025 12:11:45 -0700 Subject: [PATCH 3/5] specify driver version --- source/connect/connection-options/connection-pools.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/connect/connection-options/connection-pools.txt b/source/connect/connection-options/connection-pools.txt index cce0fa2d3..69a09fde4 100644 --- a/source/connect/connection-options/connection-pools.txt +++ b/source/connect/connection-options/connection-pools.txt @@ -172,10 +172,10 @@ object: This configuration allows the connection pool to close unused connections during periods of inactivity. - In versions earlier than 6.18.0, idle connections were not cleaned up when - ``minPoolSize`` was set to ``0``. Starting in version 6.18.0, the connection - pool correctly cleans up idle connections regardless of the ``minPoolSize`` - setting. + In versions of the {+driver-short+} earlier than 6.18.0, idle connections + were not cleaned up when ``minPoolSize`` was set to ``0``. Starting in + version 6.18.0, the connection pool correctly cleans up idle connections + regardless of the ``minPoolSize`` setting. .. _node-connection-pool-max-idle-time: From 69aea2e5d1402e1e21f27ba4133476f03d2c0b4a Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Fri, 18 Jul 2025 08:51:22 -0700 Subject: [PATCH 4/5] nr feedback --- source/connect/connection-options/connection-pools.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/connect/connection-options/connection-pools.txt b/source/connect/connection-options/connection-pools.txt index 69a09fde4..264c6de14 100644 --- a/source/connect/connection-options/connection-pools.txt +++ b/source/connect/connection-options/connection-pools.txt @@ -172,10 +172,10 @@ object: This configuration allows the connection pool to close unused connections during periods of inactivity. - In versions of the {+driver-short+} earlier than 6.18.0, idle connections - were not cleaned up when ``minPoolSize`` was set to ``0``. Starting in - version 6.18.0, the connection pool correctly cleans up idle connections - regardless of the ``minPoolSize`` setting. + In versions earlier than 6.18.0, the {+driver-short+} did not close idle + connections when ``minPoolSize`` was set to ``0``. Starting in version + 6.18.0, the connection pool correctly closes idle connections regardless + of the ``minPoolSize`` setting. .. _node-connection-pool-max-idle-time: From bc7398974a2eca1ab22d0e5211c7d5be1c29fad1 Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Fri, 18 Jul 2025 09:56:51 -0700 Subject: [PATCH 5/5] tech feedback --- source/connect/connection-options/connection-pools.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/connect/connection-options/connection-pools.txt b/source/connect/connection-options/connection-pools.txt index 264c6de14..4f286d51a 100644 --- a/source/connect/connection-options/connection-pools.txt +++ b/source/connect/connection-options/connection-pools.txt @@ -173,9 +173,9 @@ object: during periods of inactivity. In versions earlier than 6.18.0, the {+driver-short+} did not close idle - connections when ``minPoolSize`` was set to ``0``. Starting in version - 6.18.0, the connection pool correctly closes idle connections regardless - of the ``minPoolSize`` setting. + connections when ``minPoolSize`` was set to ``0`` during periods of + inactivity. Starting in version 6.18.0, the connection pool correctly closes + idle connections regardless of the ``minPoolSize`` setting. .. _node-connection-pool-max-idle-time: