wolfboys commented on code in PR #3435:
URL:
https://github.com/apache/incubator-streampark/pull/3435#discussion_r1437372481
##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/AsyncExecutorPoolConfig.java:
##########
@@ -40,4 +40,107 @@ public Executor taskExecutor() {
executor.setRejectedExecutionHandler(new
ThreadPoolExecutor.CallerRunsPolicy());
return executor;
}
+
+ @Bean("triggerSavepointExecutor")
+ public Executor savepointExecutor() {
+ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
+
+ executor.setCorePoolSize(Runtime.getRuntime().availableProcessors() * 5);
+ executor.setMaxPoolSize(Runtime.getRuntime().availableProcessors() * 10);
+ executor.setQueueCapacity(1024);
+ executor.setKeepAliveSeconds(60);
+ executor.setThreadNamePrefix("trigger-savepoint-executor-");
+ executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy());
+ return executor;
+ }
Review Comment:
good job
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]