Skip to end of metadata
Go to start of metadata

Thread Pool Configuration

Various tasks require running SIL™ programs in the background. Certain examples include Power Actions™ for Jira app or Power Scripts™ for Jira 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 apps, and now all the apps use the same thread pool. Previous consolidation happened at version 3.x. This is of high importance because now all the background tasks are placed in this thread pool. 

To configure it 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 ends 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 shows also the maximum 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 too early from the queue.

  • No labels