Types of Thread Pools for Batch Procedure

Sepasoft MES Module Suite

Types of Thread Pools for Batch Procedure

There are three main types of thread pools for Batch Procedure:

  • Logic Thread-Pool Size: This pool executes batch recipes, including transitions, evaluating conditional branches, maintaining parallel executions, and controlling step activation. Its maximum size is 2000, minimum is 25, and the default is 250 threads, capable of supporting over 2000 active batches.

  • Manual Thread-Pool Size: This pool is used for manually executing steps, either by users or via the system.mes.batch.queue.executeStep() script function. It has a maximum of 200, a minimum of 5, and a default of 25 threads, allowing 200 concurrent manual step executions across all running batches.

  • Action Thread-Pool Size: This pool services phase actions that use a shared scheduled thread, such as "No Action," "E-Signature," "Document," "Script," "Set Parameter," "Start," "Terminator," and "User Message" phases. Its maximum is 25, minimum is 5, and the default is 10 threads for a single logic item, allowing hundreds of phases using a shared thread to be serviced. Other phase types use dedicated threads.

Where can I find and adjust the default thread pool settings for Batch Procedures in Ignition?

You can view Batch Procedure threads in the Ignition Gateway by navigating to Status > Threads. To adjust the thread pool sizes for batch execution, you need to modify the Ignition.conf file. Specific settings for "Logic Thread-Pool Size," "Manual Thread-Pool Size," and "Action Thread-Pool Size" can be found and configured in this file, particularly for stable versions 3.81.7 up to the current version. The Ignition.conf file is located in the data folder of your Ignition installation path.

What is the naming convention for Batch Procedure threads visible in the Ignition Gateway?

Batch Procedure threads in the Ignition Gateway, under Status > Threads, follow a specific naming convention: mes sfc recipe <number increments> <batchID>.

  • mes-sfc: Denotes a batch thread.
  • Dedicated threads are indicated by -d.
  • Shared threads are indicated by -f.
  • The <batchID> is included, followed by a number that increments starting at 1 for the number of threads during execution.

Sepasoft MES Module Suite