Threads and Workers (v9)
1.
The global resting and maximum threads for a server is set in settings/integration.
What is the default values on installation. If I override it says 1 and 1, but this is presumably incorrect. The documentation warns about setting more than 50 maximum.
2.
Is there a rule of thumb for this maximum, perhaps based on cpu cores and/or hyperthreading.
3. In System there is set one worker queue worker, with 2 threads. This presumably also restricts the system to only every having two threads working at a time. If the maximum is increased to 20 (for the entire system) then the worker should presumably also be increased to 20? Otherwise we are still throttled to 2. Conversely, we could create additional workers to be spreading them more specifically amongst queues.
4. The QueueOrder field on a project level queue is not defined anywhere in the documentation. I assume that if the default queue has it's usual order 1, and my project queue has order 2, then (assuming they use the same worker) that my project queue jobs will only be picked up when the default queue is empty. Is this correct?
Comments
-
Hey there!
The default maximum number of threads is 5 on installation. If you override and see 1/1, that's just the override value, not the default. Setting values above 50 is not recommended due to potential performance issues.
There is no strict formula, but performance testing shows scaling with CPU cores. For example, 8 cores process about twice as many rules per second as 4 cores. Start with the default (5), and increase cautiously, monitoring performance.
If your worker is set to 2 threads, only 2 jobs will run at a time, regardless of the system maximum. To utilize a higher system maximum (e.g., 20), increase the worker thread count to match. You can also add more workers to distribute load across queues.
If the default queue has order 1 and your project queue has order 2 (and both use the same worker), jobs in the project queue will only be picked up when the default queue is empty.
Regards,
Levi | Decisions Support
0
Howdy, Stranger!
