-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Networking
-
None
-
Fully Compatible
-
Platforms 2017-04-17
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)