To change the number of threads that a message flow can use at run time to process messages, you can configure the Additional instances property of a message flow in a BAR file. These instances can be started as you need them or you can choose to start all of them at once when the message flow starts by selecting the Start additional instances when the flow starts property.
The default value of the Additional instances property is 0 threads. The maximum value of the Additional instances property is 256 threads.
To configure the Additional instances property of a message flow in a BAR file, complete the following steps:
Based on your message flow design and configuration, the following tables summarize the number of threads available when running the message flow in IBM Integration Bus:
Number of Input nodes in a message flow | Number of default instances or threads per message flow (1 thread per input node in a message flow) | Additional instances property (set at message flow level) | Maximum number of threads that can process messages in parallel |
---|---|---|---|
1 | 1 | 0 | 1 |
1 | 1 | 1 | 2 |
1 | 1 | 2 | 3 |
2 | 2 | 0 | 2 |
2 | 2 | 1 | 3 |
2 | 2 | 2 | 4 |
3 | 3 | 2 | 5 |
Number of Input nodes in a message flow (not included in a subflow) | Number of Input nodes modeled in a subflow that is included in a message flow | Number of default instances or threads per message flow (1 thread per input node in a message flow) | Additional instances property (set at message flow level) | Maximum number of threads that can process messages in parallel |
---|---|---|---|---|
0 | 1 | 1 | 0 | 1 |
1 | 1 | 2 | 0 | 2 |
0 | 1 | 1 | 1 | 2 |
1 | 1 | 2 | 1 | 3 |
0 | 1 | 1 | 2 | 3 |
1 | 1 | 2 | 2 | 4 |
0 | 2 | 2 | 0 | 2 |
2 | 2 | 4 | 2 | 6 |
0 | 2 | 2 | 1 | 3 |
0 | 2 | 2 | 2 | 4 |
0 | 3 | 3 | 2 | 5 |
Return to Configuring a message flow that includes subflows.