Abhishek Kumar Gupta
Abhishek Kumar Gupta

Reputation: 51

How can we know when HikariCp has fully initialized its pool?

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.

Upvotes: 4

Views: 640

Answers (1)

brettw
brettw

Reputation: 11114

It is undocumented (and therefore officially unsupported), but you can set the Java system property com.zaxxer.hikari.blockUntilFilled=true.

Upvotes: 5

Related Questions