[SERVER-20283] connPoolStats command does not include any information about connections owned by the NetworkInterface Created: 03/Sep/15  Updated: 22/Mar/17  Resolved: 13/Oct/15

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-6767 Comment on: "manual/reference/command... Closed
Related
related to SERVER-20875 Update or remove connPoolSync command Backlog
is related to SERVER-21597 Fix connPoolStats command to work wit... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 9 (09/18/15), Platform A (10/09/15), Platform B (10/30/15)
Participants:

 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
}



 Comments   
Comment by Samantha Ritter (Inactive) [ 13/Oct/15 ]

Documentation changes needed, this commit changes the format of an outward-facing command. We will need to update this page: http://docs.mongodb.org/manual/reference/command/connPoolStats/

Comment by Githook User [ 13/Oct/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-20283 Update connPoolStats command to include multiple connection pools
Branch: master
https://github.com/mongodb/mongo/commit/4877c6b197438495d9fdd88317d4b79d565014c6

Generated at Thu Feb 08 03:53:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.