SWJTU-ZhangLei commented on code in PR #46959: URL: https://github.com/apache/doris/pull/46959#discussion_r1915879735
########## fe/fe-core/src/main/java/org/apache/doris/catalog/TabletStatMgr.java: ########## @@ -43,12 +43,24 @@ public class TabletStatMgr extends MasterDaemon { private static final Logger LOG = LogManager.getLogger(TabletStatMgr.class); - private ForkJoinPool taskPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors()); + private ForkJoinPool taskPool = new ForkJoinPool(Math.max(8, Runtime.getRuntime().availableProcessors())); public TabletStatMgr() { super("tablet stat mgr", Config.tablet_stat_update_interval_second * 1000); } + private ForkJoinPool adjustThreadPool(int backendSize) { + int minimunParallelism = Math.max(8, Runtime.getRuntime().availableProcessors()); Review Comment: 1、why not just use parallel stream for multi be task or forkJoinPool for multi be task, instead of both used ? 2、TabletInvertedIndex also has the same problem, -- 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. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org