From 055e5470169d7ecaf5b04fa06b6777270ba15c6d Mon Sep 17 00:00:00 2001 From: Zhanhui Li Date: Mon, 20 Nov 2023 10:22:52 +0800 Subject: [PATCH] chore: enlarge database connection pool (#671) Signed-off-by: Li Zhanhui --- .../automq/rocketmq/metadata/DruidDataSourceFactory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java b/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java index ea12877c8..f2f08e947 100644 --- a/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java +++ b/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java @@ -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);