Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions source/connect/connection-options/connection-pools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 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:

maxIdleTimeMS
Expand Down
Loading