Skip to content

Commit

Permalink
chore: enlarge database connection pool (#671)
Browse files Browse the repository at this point in the history
Signed-off-by: Li Zhanhui <[email protected]>
  • Loading branch information
lizhanhui authored Nov 20, 2023
1 parent 0049b3d commit 055e547
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public void setProperties(Properties properties) {
} catch (SQLException e) {
LOGGER.error("Failed to set stat filter", e);
}
dataSource.setMaxActive(20);
dataSource.setInitialSize(5);
dataSource.setMinIdle(1);
dataSource.setMaxWait(6000);
dataSource.setMaxActive(100);
dataSource.setInitialSize(20);
dataSource.setMinIdle(5);
dataSource.setMaxWait(60000);

dataSource.setTimeBetweenEvictionRunsMillis(60000);
dataSource.setMinEvictableIdleTimeMillis(300000);
Expand Down

0 comments on commit 055e547

Please sign in to comment.