[DOCS-10003] Clarification needed for serverStatus globalLock.activeClients.total Created: 16/Mar/17 Updated: 30/Oct/23 Resolved: 30/Oct/17 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Stennie Steneker (Inactive) | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Days since reply: | 6 years, 15 weeks, 2 days ago | ||||||||||||
| Description |
|
According to the serverStatus documentation globalLock.activeClients.total is:
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:
The description of "client connections" also makes it easy to conflate this with the metric users are probably looking for: db.serverStatus().connections.current. |
| Comments |
| Comment by Githook User [ 30/Oct/17 ] |
|
Author: {'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}Message: Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Githook User [ 30/Oct/17 ] |
|
Author: {'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}Message: Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Kay Kim (Inactive) [ 08/Aug/17 ] |
|
Tickets created before server ticket has even started. Will close. |
| Comment by Eric Milkie [ 24/Mar/17 ] |
|
I think the stats are confusing; why would "total currentQueue" be the sum of queued readers and queued writers, but "total activeClients" be totally divergent from the count of active readers and active writers? I will file a SERVER ticket to consider changing the stat here to something more useful. We can use this ticket to document the change. |