We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e52710b commit 24007d3Copy full SHA for 24007d3
1 file changed
source/connect/connection-options/connection-pools.txt
@@ -165,6 +165,18 @@ object:
165
minPoolSize: 10
166
});
167
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
180
.. _node-connection-pool-max-idle-time:
181
182
maxIdleTimeMS
0 commit comments