java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30006ms. code example
Example: spring Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30001ms
spring:
datasource:
hikari:
minimumIdle: 2
maximumPoolSize: 20
idleTimeout: 120000
connectionTimeout: 300000
leakDetectionThreshold: 300000
HikariConfig config = new HikariConfig();
config.setMaximumPoolSize(20);
config.setConnectionTimeout(300000);
config.setConnectionTimeout(120000);
config.setLeakDetectionThreshold(300000);