Skip to content

Commit 24007d3

Browse files
authored
DOCSP-51630 Add admonition for minPoolSize behavior (#1190)
1 parent e52710b commit 24007d3

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 earlier than 6.18.0, the {+driver-short+} did not close idle
176+
connections when ``minPoolSize`` was set to ``0`` during periods of
177+
inactivity. Starting in version 6.18.0, the connection pool correctly closes
178+
idle connections regardless of the ``minPoolSize`` setting.
179+
168180
.. _node-connection-pool-max-idle-time:
169181

170182
maxIdleTimeMS

0 commit comments

Comments
 (0)