[SERVER-28949] Make JSTests use the localhost network interface Created: 24/Apr/17  Updated: 06/Dec/22

Status: Open
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: Task Priority: Major - P3
Reporter: Spencer Jackson Assignee: Backlog - Security Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-28229 Bind to localhost by default Closed
Assigned Teams:
Server Security
Participants:

 Description   

SERVER-28229 makes MongoDB bind to localhost by default. However, the majority of our testing infrastructure spins up multi-node clusters on a single machine, and makes them speak to each other using the public IP address. SERVER-28229 had to add many instances of bindIp: 0.0.0.0

There may be benefits to making these nodes bind to localhost. localhost connections can incur less latency, as the kernel can bypass chunks of the networking stack. These chunks may be larger in virtualized environments like AWS.



 Comments   
Comment by Andy Schwerin [ 25/Apr/17 ]

Before changing this, investigate how it affects coverage. The tests intentionally used the public IP address, at least historically, because it exercised different logic in the replication and sharding code.

Until we are confident that we have excised that code, we should keep existing behavior.

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