LebronAl edited a comment on pull request #2362:
URL: https://github.com/apache/iotdb/pull/2362#issuecomment-751706323
> int maxConcurrentClientNum = Math.max(CommonUtils.getCpuCores(),
config.getMaxConcurrentClientNum());
You are right.But I think the core size can be smaller than cpu.core. What
about this?` serialToParallelPool = new
ThreadPoolExecutor(allNodes.size(), Math.max(allNodes.size(),
Runtime.getRuntime().availableProcessors()),
1000L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<>(), new
ThreadFactoryBuilder().setNameFormat(getName() +
"-SerialToParallel%d").build());`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]