[SERVER-15390] Add details on type of connections in the mongod.log Created: 25/Sep/14  Updated: 28/Nov/23  Resolved: 28/Nov/23

Status: Closed
Project: Core Server
Component/s: Logging, Networking
Affects Version/s: 2.6.4
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Daniel Coupal Assignee: Backlog - Service Architecture
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

In the mongod.log file, we have the following lines:

2014-09-24T10:19:42.283-0400 [conn31] end connection 127.0.0.1:53984 (6 connections now open)
2014-09-24T10:19:42.283-0400 [initandlisten] connection accepted from 127.0.0.1:54012 #33 (7 connections now open)

There has been confusion about the number of connections moving up and down. The fluctuations are caused, among other things, by replication, heartbeats, ...
I think we should differentiate between the client connections, and the system connections. The output could look like:

2014-09-24T10:19:42.283-0400 [conn31] end connection 127.0.0.1:53984 (6 connections now open, 4 system connections, 2 client connections)
2014-09-24T10:19:42.283-0400 [initandlisten] connection accepted from 127.0.0.1:54012 #33 (7 connections now open, 5 system connections, 2 client connections)



 Comments   
Comment by Phoebe Du [ 28/Nov/23 ]

Our log format has changed a lot since this ticket was filed, the requests should have been met already. Please feel free to reach out to Service Arch if there's further request and information you want to provide. Thanks!

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