Updating the rule usage snapshot parameters

Pega Platform maintains statistics about the number of rule executions since startup. You can update the parameters that the system uses for capturing these statistics.

Two prconfig.xml settings control this facility:
  • usage/rules/shapshotonshutdown – Controls whether statistics are saved on system shutdown. The default is true.
  • usage/rules/committhreshold – The number of rows to be saved for each database commit operation. Rows will be saved and committed until all of the rows have been committed. The default number of rows is 100.

You can change the settings in the prconfig.xml file and restart the server, or update these as dynamic system settings.

Procedure
  • To prevent shutdown statistics from being saved, set the usage/rules/shapshotonshutdown setting to false.
  • To change the number of rows that are saved for each database commit, set the usage/rules/committhreshold setting to the number of rows to be saved.
    Tip: On a large system with thousands of rules in use, set a larger committhreshold value to reduce the shutdown delay.