Skip to content
Permalink
Browse files

Increase the postgresql connection pool size

  • Loading branch information
KevinCaseiras committed Nov 19, 2019
1 parent d9dda95 commit a09f4583d3ea42bd5b8bae5def272cf110361c04
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/gov/nysenate/openleg/config/DatabaseConfig.java
@@ -58,13 +58,13 @@ public ComboPooledDataSource postgresDataSource() {
logger.info("Connecting to Postgres: " + pool.getJdbcUrl());
pool.setUser(dbUser);
pool.setPassword(dbPass);
pool.setMinPoolSize(3);
pool.setMaxPoolSize(10);
pool.setMinPoolSize(8);
pool.setMaxPoolSize(20);

// Test each connection every 30 sec after first check-in
// Test each connection every 60 sec after first check-in
pool.setTestConnectionOnCheckout(false);
pool.setTestConnectionOnCheckin(true);
pool.setIdleConnectionTestPeriod(30);
pool.setIdleConnectionTestPeriod(60);
return pool;
}

0 comments on commit a09f458

Please sign in to comment.
You can’t perform that action at this time.