<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 9, 2017 at 11:02 AM, Wessel, Keith <span dir="ltr"><<a href="mailto:kwessel@illinois.edu" target="_blank">kwessel@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">All,<br>
<br>
We recently added connection pooling to our LDAP data connectors to speed thing sup. I was hoping, based on past experience with database connection pooling, to allow the IdP to go about its business if it started up and couldn't create any connections in the pool. That is, if the LDAP server was unavailable, it would go ahead and start and keep trying to create LDAP connections. This shouldn't happen since our LDAP server is clustered, but I'm all for making things as fault-proof as possible.<br>
<br>
Yesterday morning, our test LDAP cluster was down when our test IdP nodes restarted, and they all reported not being able to initialize the LDAP connection pool.<br>
<br>
I have this in my LDAP data connectors:<br>
<ConnectionPool maxPoolSize="20" blockWaitTime="PT5S"<br>
expirationTime="PT10M" failFastInitialize="false"<br>
validatePeriodically="true" validateTimerPeriod="PT10M"<br>
validateDN="%{idp.attribute.<wbr>resolver.LDAP.bindDN" /><br>
<br>
I left out the min pool size with the impression that it defaults to 0. I also didn't' see any params discussing an initial pool size, assuming that it was the ame as the min pool size.<br></blockquote><div><br></div><div>Correct, it defaults to 0.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Am I overlooking something? How do I get the pool to initialize even if it can't create connections?<br></blockquote><div><br></div><div> The failFastInitialize attribute is the key piece and you've correctly set it to false for the behavior you want. The IDP should successfully start even though the connection pool is empty. Can you share some logs from this event?</div><div><br></div><div>--Daniel Fisher</div><div><br></div></div></div></div>