Skip to content

Commit 93a3501

Browse files
committed
add callout for minpoolsize
1 parent b495e1c commit 93a3501

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/connect/connection-options/connection-pools.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ object:
165165
minPoolSize: 10
166166
});
167167

168+
.. note::
169+
170+
A ``MongoClient`` configured with ``maxIdleTimeMS`` and ``minPoolSize``
171+
set to ``0`` is optimal for workloads with sustained periods of low activity.
172+
This configuration allows the connection pool to close unused connections
173+
during periods of inactivity.
174+
175+
In versions prior to 6.18.0, idle connections were not cleaned up when
176+
``minPoolSize`` was set to ``0``. Starting in version 6.18.0, the connection
177+
pool correctly cleans up idle connections regardless of the ``minPoolSize``
178+
setting.
179+
168180
.. _node-connection-pool-max-idle-time:
169181

170182
maxIdleTimeMS

0 commit comments

Comments
 (0)