Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20283

connPoolStats command does not include any information about connections owned by the NetworkInterface

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: Networking
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platform 9 (09/18/15), Platform A (10/09/15), Platform B (10/30/15)

      Description

      *NOTE* the changes described in this ticket were over-written by changes made for SERVER-21597.

      the connPoolStats command only inspects the "globalConnPool" which stores dbclientinterface style connections. Now that we only use those types of connections in a few places the command is significantly less useful. We should add stats about the NetworkInterface managed connections into its output to make it useful again.

      Proposed new output:

      There may now be several connection pools in use within the server at any given time. For each connection pool we will report a list of the hosts it contains connections for, and how many of those connections are in use. We'll also provide the total number of connections being made through that pool.

      "pools" : {
           "NetworkInterfaceASIO (Sharding)" : {
                "hosts" : {
                     "some-server:27017" : {
                              "inUse" : 1,
                              "available" : 2,
                              "created" : 3
                      }
                }
                "totalInUse" : 1,
                "totalAvailable" : 2,
                "totalCreated" : 3
           },
           "NetworkInterfaceASIO (Replication)" : { ... },
           "DBClient (Global)" : { ... },
           "ok" : 1
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samantha.ritter Samantha Ritter (Inactive)
              Reporter:
              spencer Spencer Brody (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: