@@ -40,30 +40,11 @@ details on how to use a ``mongocxx::client`` in a thread-safe manner.
40
40
Configuring a Connection Pool
41
41
-----------------------------
42
42
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.
67
48
68
49
Using a Connection Pool
69
50
-----------------------
0 commit comments