Skip to content

Commit 993c09b

Browse files
authored
[C++] Remove minPoolSize (#99)
* remove deprecated minPoolSize param
1 parent cc2059a commit 993c09b

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

source/connect/connection-pools.txt

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,11 @@ details on how to use a ``mongocxx::client`` in a thread-safe manner.
4040
Configuring a Connection Pool
4141
-----------------------------
4242

43-
The number of clients in a connection pool is determined by the URI
44-
parameters ``minPoolSize`` and ``maxPoolSize``. The ``minPoolSize`` and
45-
``maxPoolSize`` options set resource usage targets for when the driver is
46-
idle or fully-utilized. When fully utilized, up to maxPoolSize clients
47-
are available. When clients are returned to the pool, they are destroyed
48-
until the pool has shrunk again to the minPoolSize.
49-
50-
.. list-table::
51-
:header-rows: 0
52-
:stub-columns: 1
53-
:widths: 20 35
54-
55-
* - maxPoolSize
56-
- The maximum number of clients created by a mongocxx::pool (both in the
57-
pool and checked out). The default value is 100. Once it is reached,
58-
mongocxx::pool::acquire blocks until another thread returns a client to
59-
the pool.
60-
61-
* - minPoolSize
62-
- Sets a target size for the pool when idle. Once this many clients have
63-
been created, there will never be fewer than this many clients in the
64-
pool. If additional clients above minPoolSize are created, they will be
65-
destroyed when returned to the pool. The default value is "0", which
66-
disables this feature. When disabled, clients are never destroyed.
43+
The number of clients in a connection pool is limited by the URI parameter
44+
``maxPoolSize``. After the number of clients created by a ``mongocxx::pool``
45+
(both in the pool and checked out) reaches the value of ``maxPoolSize``,
46+
``mongocxx::pool::acquire`` blocks until another thread returns a client to the
47+
pool. The default value is 100.
6748

6849
Using a Connection Pool
6950
-----------------------

0 commit comments

Comments
 (0)