Search code examples
ignite

Apache Ignite - Pool size in Executor


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


Solution

  • 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.