-
Type: Spec Change
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
Summary
Supply a mechanism to limit the number of mongos servers used in connecting to sharded clusters.
Motivation
Connections using cluster SRV records having many mongos addresses can result in very large numbers of connections to mongos servers. This can lead to a variety of severe performance issues resulting from rapid buildup of connections, both to mongos servers, as well as from mongos servers to shard mongod servers. Limiting the mongos servers used in connecting to clusters has been found to help in reducing high connection counts and associated negative performance impacts.
Who is the affected end user?
Customers on Atlas using sharded clusters. Per each cluster, Atlas creates 3 mongos. For example, a 25 shard cluster will have 75 mongos instances. Since we default to using an SRV connection string, the MongoDB drivers will effectively have to manage connections to all 75 mongos instances. In one customer's case, with a large number of application servers, this results in between 10,000 and 13,000 connections to each mongos.
How does this affect the end user?
A large number of connections to each mongos leads to excessive memory usage by each mongos and on application servers.
Is this issue urgent?
No, customer has PS designing a workaround
Is this ticket only for tests?
No
Is this ticket required by a downstream team?
No
Cast of Characters
Engineering Lead:
Document Author:
POCers:
Product Owner: Rachelle Palmer
Program Manager:
Stakeholders:
- is depended on by
-
PHPC-1908 Allow limiting mongos servers with srvMaxHosts option
- Closed
- related to
-
CDRIVER-4230 Configure Evergreen to support sharded and SRV polling configurations
- Backlog