Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
According to the serverStatus documentation globalLock.activeClients.total is:
The total number of active client connections to the database (i.e., the sum of globalLock.activeClients.readers and globalLock.activeClients.writers).
This used to be correct for MongoDB 2.6 and earlier, but MongoDB 3.0+ appears to have changed the calculation. The total is perhaps including internal system operations since it seems to align with the number of running operations as reported by db.currentOp(true).inprog.length.
Example from MongoDB 3.4.2:
> db.serverStatus().globalLock.activeClients
|
{
|
"total": 11,
|
"readers": 0,
|
"writers": 0
|
}
|
The description of "client connections" also makes it easy to conflate this with the metric users are probably looking for: db.serverStatus().connections.current.
Attachments
Issue Links
- depends on
-
SERVER-28494 Fix globalLock.activeClients.total server status section
-
- Closed
-