Change to minimum lifeTime
This commit is contained in:
parent
e33ebb7379
commit
3bcaa3f12b
@ -122,7 +122,7 @@ public class MySQL implements DataSource {
|
||||
config.addDataSourceProperty("prepStmtCacheSize", "250");
|
||||
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
|
||||
config.addDataSourceProperty("autoReconnect", true);
|
||||
config.setMaxLifetime(12000);
|
||||
config.setMaxLifetime(30000);
|
||||
config.setInitializationFailFast(false);
|
||||
ds = new HikariDataSource(config);
|
||||
ConsoleLogger.info("Connection pool ready");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user