IdPv3 - authn ldap - connection strategy?

Daniel Fisher dfisher at vt.edu
Sat Mar 26 01:13:43 EDT 2016


On Thu, Mar 24, 2016 at 12:11 PM, John Horne <john.horne at plymouth.ac.uk>
wrote:

> Thanks for that. I would have thought though that the strategy would
> have been part of the 'connectionConfig', since that is where the URLs
> are defined, rather than a per-provider thing.
>

That property has been moved to connection config in the latest snapshot of
ldaptive.


> I have no problem with using a pool, but would like it to use round-
> robin when selecting which LDAP server/URL should be used for any new
> connections.


You can configure the round robin strategy to use it's invocation count,
rather than the connection count.
This behavior will be closer to what you expect for a connection pool.
<bean id="connStrategy"
class="org.ldaptive.provider.ConnectionStrategies$RoundRobinConnectionStrategy">
  <constructor-arg value="false" />
</bean
<bean id="jndiConfig" class="org.ldaptive.provider.jndi.JndiProviderConfig"
p:connectionStrategy-ref="connStrategy" />

Since connections will attempt to reopen themselves under certain failure
conditions, this doesn't guarantee that each new connection in the pool
will use the next URL.
But under nominal circumstances that's the behavior you will see.
I always like to point out that none of these software solutions are a good
substitute for a network load balancer.

--Daniel Fisher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160326/e869954d/attachment.html>


More information about the users mailing list