Skip to content

Commit

Permalink
chore: fix default blockIoThreads
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jun 22, 2024
1 parent 76a441e commit 28126e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class RaftServerConfig {

private boolean checkSelf = true;

private int blockIoThreads = Math.min(Runtime.getRuntime().availableProcessors() * 2, 4);
private int blockIoThreads = Math.max(Runtime.getRuntime().availableProcessors() * 2, 4);

private PoolFactory poolFactory = new DefaultPoolFactory();

Expand Down

0 comments on commit 28126e9

Please sign in to comment.