I want to start my service after HikariCP has added all connection to its pool. I am using Spring Boot.
I have a large Pool size, but while starting the application it takes a lot of time for HikariCP to add the connections and I get Connection timeouts.
It is undocumented (and therefore officially unsupported), but you can set the Java system property com.zaxxer.hikari.blockUntilFilled=true
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With