[SERVER-41828] Ensure LDAP conn pool prefers ldap servers listed first Created: 19/Jun/19  Updated: 29/Oct/23  Resolved: 20/Jun/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.11, 4.2.0-rc3, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Jonathan Reams Assignee: Jonathan Reams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0
Sprint: Security 2019-07-01
Participants:

 Description   

The LDAP connection pool currently tries to connect to all servers at once and returns the first one that succeeds. However in the common case where the connection pool has a bunch of healthy connections, this can lead to very non-deterministic host selection. We should try to get a connection to each ldap server in they order they are listed, and only start connecting to them asynchronously if they cannot be fulfilled immediately.



 Comments   
Comment by Githook User [ 10/Jul/19 ]

Author:

{'name': 'Jonathan Reams', 'username': 'jbreams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-41828 Make LDAP connection pool honor order of LDAP servers

(cherry picked from commit 5d6c438c6967c6bad3d1083e6621aba82d222129)
(cherry picked from commit 1b081614bc593a9d7143d73670c7d98c2d2d952d)
Branch: v4.0
https://github.com/10gen/mongo-enterprise-modules/commit/1387b348f11d82deb83e1f30554a7e41e33ccfbc

Comment by Githook User [ 08/Jul/19 ]

Author:

{'name': 'Jonathan Reams', 'username': 'jbreams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-41828 Make LDAP connection pool honor order of LDAP servers

(cherry picked from commit 5d6c438c6967c6bad3d1083e6621aba82d222129)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/1b081614bc593a9d7143d73670c7d98c2d2d952d

Comment by Githook User [ 20/Jun/19 ]

Author:

{'name': 'Jonathan Reams', 'email': 'jbreams@mongodb.com', 'username': 'jbreams'}

Message: SERVER-41828 Make LDAP connection pool honor order of LDAP servers
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/5d6c438c6967c6bad3d1083e6621aba82d222129

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