Skip to content

Commit

Permalink
increase pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
doom369 committed Jan 20, 2021
1 parent 927fa4d commit cc00de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public BlockingIOProcessor(int poolSize, int maxQueueSize) {
new ArrayBlockingQueue<>(100),
BlynkTPFactory.build("reporting-db"));

this.dbGetServerExecutor = new ThreadPoolExecutor(poolSize / 3, poolSize / 3, 2L,
this.dbGetServerExecutor = new ThreadPoolExecutor(poolSize, poolSize, 2L,
TimeUnit.MINUTES, new ArrayBlockingQueue<>(250),
BlynkTPFactory.build("getServer"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private HikariConfig initConfig(BaseProperties serverProperties) {

config.setAutoCommit(false);
config.setConnectionTimeout(serverProperties.getLongProperty("connection.timeout.millis"));
config.setMaximumPoolSize(3);
config.setMaximumPoolSize(10);
config.setMaxLifetime(0);
config.setConnectionTestQuery("SELECT 1");
return config;
Expand Down

0 comments on commit cc00de7

Please sign in to comment.