Apache Ignite-执行程序中的池大小 [英] Apache Ignite - Pool size in Executor

查看:56
本文介绍了Apache Ignite-执行程序中的池大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用基于群集的执行器服务.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆