Apache Ignite-执行程序中的池大小 [英] Apache Ignite - Pool size in Executor
问题描述
我正在尝试使用基于群集的执行器服务.
I am trying to use cluster based executor service.
//获取启用集群的执行器服务.ExecutorService exec = ignite.executorService();
// Get cluster-enabled executor service. ExecutorService exec = ignite.executorService();
反正是否可以设置执行程序服务池中的线程数?
Is there anyway to set the number of threads in the executor service pool?
希望,作业将以循环方式在群集中的每个节点中执行.
Hope, Jobs will be executed in each node in a cluster in a round robin fashion.
谢谢
推荐答案
分布式执行程序服务的作业提交者在公共线程池中执行.可以通过 IgniteConfiguration.publicThreadPoolSize
配置属性来配置其大小.请注意,大小是按节点指定的.
Jobs submitter to distributed executor service are executed in a public thread pool. Its size can be configured via IgniteConfiguration.publicThreadPoolSize
configuration property. Note that the size is specified per node.
这篇关于Apache Ignite-执行程序中的池大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!