[SERVER-28664] ASIO connection pool should bias itself towards more recently used connections Created: 06/Apr/17  Updated: 06/Dec/17  Resolved: 13/Apr/17

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

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-04-17
Participants:

 Description   

The connection pool inside of asio currently hands out connection randomly. If it handed out the most recently used connection instead, it would give less used connections an opportunity to age out and be organically dropped.

This would also minimize the number of active clients on a mongod ahead of the actual connection drop (as fewer threads would be asked to do more work)



 Comments   
Comment by Githook User [ 13/Apr/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-28664 Use pool connections in MRU order
Branch: master
https://github.com/mongodb/mongo/commit/3edc5558fa1728761549c775350a2e17fb68f8ab

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