Thread Pool Configuration
There are various tasks that require running SIL programs in the background. Some examples include Blitz Actions plugin actions or Power Scripts for JIRA (formerly known as JJUPIN) gadget scripts. These tasks are run in a special thread pool.
Thread pool configuration is easy, however you must understand the implications of each parameter since they may affect the tasks that are run in the background.
With the 4.0 version, we have unified this thread pool across the plugins, and now all the add-ons use the same thread pool; a previously consolidation happened at version 3.x. This is hugely important because now all the background tasks will be placed in this thread pool - and only this.
To configure it, you must specify:
- Threads - the number of running threads (number of SIL scripts running in the same time).
- Time to Live (TTL) - time to live (running time for a SIL script). If you run a task that takes more than TTL configured, the script will end with no result.
- Checkpoint Interval - interval to clean up the expired tasks (the SIL scripts that exceeds the TTL configured). The pool is maintained by a watchdog thread, and the checkpoint interval determines the interval between checks
Tips
The page will show also the maximal task queue length and the current tasks that are running. If your number of threads is constantly under the the max reached queue length, consider increasing the thread pool size.
If you run reporting tasks, that may gather data from multiple sources and take a long time to complete, please increase both the number of threads (if the pool is occupied with those tasks) and the TTL so that the tasks/results will not be removed prematurely from the queue