How to configure the Background Task Runner queue sizes

Summary

A breakdown of how broadcasts work is covered in the linked article. Here, we will address how making a few changes to Yellowfin configuration files can help you customise the number of background threads that can run simultaneously and how many can be queued.

How to configure the task queue sizes

By default Yellowfin allows up to 5 background threads to be run concurrently, and 20 tasks sitting in the waiting queue.
Both of these options can be configured by editing the web.xml file (yellowfin\appserver\webapps\root\web-inf\), then restarting YF to have the changes take affect.
It's important BEFORE making any changes that you make a backup of your web.xml. 

The concurrent queue size is configured via the 'TaskSchedulerThreads' , and the waiting queue size via the 'TaskSchedulerMaxThreadQueue' parameter. This all lives under the MIStartup block, and should be in there already, commented out. 

Example below

Just uncomment the relevant parameters, make your changes to the <param-value> value, save, and restart YF. 

Again, it's worth mentioning that if you're looking at changing these values, there could be more to it, so please reach out to the support team with a new ticket or send us an email.

Is this article helpful?
3 0 0