[SERVER-53342] New mechanism to force closure of connections when reaching maxIncomingConnections Created: 14/Dec/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Nic Cottrell Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 1
Labels: sa-remove-fv-backlog-22
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Service Arch
Participants:
Case:

 Description   

In some cases, a misbehaving client could open up thousands of connections in a short burst, causing a node to reach maxIncomingConnections and preventing both legitimate client operations and internal health ping and monitoring connections from being established.

I'd like to see a new server-side mechanism that kicks in when maxIncomingConnections is reached, somewhat analogous to a JVM garbage collector. This would identify stalled (or unused) connections and quickly force them closed, relieving connection pressure and allowing normal operations.

This would be necessary on both mongos instances as well as all mongod processes. 


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