[SERVER-48402] Add current values of socket metrics to collected metrics Created: 26/May/20  Updated: 29/Oct/23  Resolved: 03/Aug/23

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

Type: Improvement Priority: Minor - P4
Reporter: Eric Sommer Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot from 2023-07-31 15-17-42.png    
Issue Links:
Backports
Depends
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0, v5.0, v4.4
Sprint: Service Arch 2023-08-07
Participants:
Case:

 Description   

System network metrics currently include things like "Tcp ActiveOpens" and "TcpExt TW".

It would be helpful to also have current values for active, as well as TIME_WAIT and CLOSE_WAIT. It would help in investigating issues where the number of active connections, or connections in TIME_WAIT hit high levels.



 Comments   
Comment by Githook User [ 07/Aug/23 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-48402 Add sockstat metrics to FTDC system collector on linux
Branch: minh.luu-no_compile_sys-perf
https://github.com/mongodb/mongo/commit/d2080ff2b5af04a3dbe5fd0fd0ab467da42e473e

Comment by Githook User [ 03/Aug/23 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-48402 Add sockstat metrics to FTDC system collector on linux
Branch: master
https://github.com/mongodb/mongo/commit/d2080ff2b5af04a3dbe5fd0fd0ab467da42e473e

Comment by Lauren Lewis (Inactive) [ 21/Dec/21 ]

We haven’t heard back from you in at least 1 year, so I'm going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Comment by Bruce Lucas (Inactive) [ 26/May/20 ]

The counters you mention are cumulative counters of the events they refer to, but I think what you're actually asking for is current values for established connections, connections in time_wait, and connections in close_wait.

The current number of currently established connections is available as CurrEstab.

I'm not sure whether number of sockets in time_wait and close_wait is readily available for reporting in ftdc, but it may be in /proc/net/sockstat. Some investigation may be needed to determine what those counters mean.

Generated at Thu Feb 08 05:17:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.