问题
I am trying to use cluster based executor service.
// 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.
Thanks
回答1:
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.
来源:https://stackoverflow.com/questions/41960996/apache-ignite-pool-size-in-executor