Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16026

[Server] Investigate changes in SERVER-73610: Introduce connection-leasing from ConnectionPool and NetworkInterface

    XMLWordPrintableJSON

Details

    • 2

    Description

      Original Downstream Change Summary

      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. 

      Attachments

        Activity

          People

            corry.root@mongodb.com Corry Root
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              29 weeks, 1 day ago