-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
-
2
We added some new information to the output of the connPoolStats command to track the "leased connection" concept introduced by this ticket.
"Leased connections" are those that have been loaned-out by some particular pool to some server-subsystem. These connections are not available to the pool, because they are on-loan, but may not be actively in-use running operations. They are expected to be returned to the pool at some point. The particular changes are:
- A new top-level "totalLeased" field that is an integer counter of the total amount of connections currently on-lease
- For each entry in the "pools" sub-document, a field "poolLeased" that is an integer counter of the amount of connections currently on-lease from that pool
- For each entry in the "hosts" sub-document, a field "leased" that is an integer counter of the amount of connections to that host currently on-lease.
Description of Linked Ticket
Modify the ConnectionPool to allow connections to be "leased" from it. "Leasing" a connection from the pool should be just like the ordinary checking-out of a connection from the pool, but the connection pool's metrics and tracking should not assume that these connections are in active use for the duration of their lease, and should be exempted from related metrics.
Then, extend the NetworkInterface API to allow users to lease a connection from it's underlying pool.
- documents
-
SERVER-73610 Introduce connection-leasing from ConnectionPool and NetworkInterface
- Closed