In the Trillium Control Center, scheduled jobs can run consecutively, or concurrently,
depending on whether you choose to run the jobs now or at later times. How jobs run,
also depend on the maximumWeight
parameter set in the server
configuration (config.txt) file.
If
maximumWeight
is 1, scheduled jobs run consecutively in sequential order.If
maximumWeight
is greater than 1, scheduled jobs run concurrently up to the set value. For example, ifmaximumWeight = 10
, up to ten scheduled jobs can run concurrently.
When you analyze business rules using the Group By option and the
maximumWeight
parameter is greater than 1,
business rule analysis runs concurrently on multiple rules at a time. This can lead to
performance issues including a slow down (or hanging) of your system.
You can use the optional business_group_limit
setting to restrict the
concurrent analysis of business rules using the Group By option.
business_group_limit
value.Guidelines:
By default, the business_group_limit
is disabled, that is set to
0, and rule analysis jobs can run without any constraint. When
business_group_limit
is set to greater than 1, it allows rule
analysis jobs to run concurrently. If the number of business rules using the Group By
option is greater than the value set in business_group_limit
, the rule
analysis jobs run in consecutive order. This is desirable to avoid performance
issues.
Example:
Suppose you have five business rules using the Group By option. You modify the server
configuration file such that, maximunWeight = 2
, and
business_group_limit = 4
.
Now when you schedule rule analysis of two business rules, the jobs run in sequential order. As a result, the second rule analysis job is able to obtain the resources it needs and avoid performance issues.
To set business_group_limit
On the server system, stop the TSS scheduler service.
Open the config.txt file for editing:
On Windows, file is located in : C:\Program Files\Trillium Software\MBSW\17\etc
On UNIX, file is located in: UNIX: …/metabase/etc
Go to the key public section.
Modify the value for the business_group_limit. For example,
key public { value max_string_size 32767 value utf8_length 3 value str_base 1 value business_group_limit 5 }
Go to the key scheduler section.
Modify the value of the maximumWeight parameter. For example,
key scheduler { value port [get {public ports scheduler}] value timeout [expr {5*60*1000}] value maximumWeight 2
Note: Ensure the value is greater than 1, otherwise thebusiness_group_limit
will be treated as if set to 0 (or turned off).Save and close the file.
Start the TSS scheduler service.