[SERVER-44152] Pre-warm connection pools in mongos Created: 22/Oct/19 Updated: 30/Sep/21 Resolved: 13/Nov/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.2, 4.2.17 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Anton Oyung |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backport Requested: |
v4.2
|
||||||||||||||||||||||||
| Sprint: | Sharding 2019-10-21, Sharding 2019-11-04, Sharding 2019-11-18 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 145 | ||||||||||||||||||||||||
| Description |
Problem statementWhen a mongos is initially brought up, it lacks connections to any of the cluster’s shard servers. This can add latency to user operations, as we require a request to a host before we start spooling a connections (even in the presence of minPoolSize). ProposalProvide a new startup parameter, which would cause mongos wait a configurable amount of time to establish at least minPoolSize connections to each shard server before accepting user connections. This would allow us to reboot mongos’, or add new ones, without making any initial user requests pay the overhead of waiting on connection establishment. This should should be relatively simple. Cribbing from the test only mongos command: multicast
Steps 1 and 7 may also be optional (if we’re waiting 10 seconds, the 5 minute host timeout may not matter). In either case, the work should be relatively approachable, as it only involves being a regular client of the networking layer in mongos, rather than doing any development against the interior components. |
| Comments |
| Comment by Andrew Shuvalov (Inactive) [ 30/Sep/21 ] |
|
The pre-warm feature is causing BF-22699, if you are interested to help with insight please comment in |
| Comment by Githook User [ 17/Sep/21 ] |
|
Author: {'name': 'Anton Oyung', 'email': 'anton.oyung@mongodb.com', 'username': 'AntonOyung'}Message: |
| Comment by Githook User [ 13/Nov/19 ] |
|
Author: {'name': 'Anton Oyung', 'username': 'AntonOyung', 'email': 'anton.oyung@mongodb.com'}Message: |