Planning your case archiving and purging process
Plan your case archiving and purging process to ensure that it is efficiently implemented.
When running archival jobs and purge jobs, use the following settings:
- Configure dataarchival/LimitPerPolicy to change the rate at which you archive eligible cases. For more information about archive settings, see Creating and configuring case archive settings.
- Configure dataarchival/purgeQueryLimit to change the rate at which you delete records after they have been archived to Pega Cloud File Storage. For more information about archive and purge settings, see Configuring purge cycle settings.
- Identify the number of cases in your initial backlog and the rate at which
cases become eligible for archiving, then create an archival policy for those
cases.For example, your system contains a backlog of 10,000 cases and adds 500 cases a day.
For more information about creating an archival policy, see Creating an archival policy.
- Schedule an archive and purge process that finishes during a time period of
low-system load.For example, your system might experience low system load every day for five hours or every weekend for 12 hours.
For more information about scheduling an archival policy, see Scheduling a case archival policy.
- Determine the upper range for archiving and purge processing by adjusting the
dataarchival/LimitPerPolicy and
dataarchival/purgeQueryLimitsettings. You can run an
experiment to determine the necessary values by performing the following
steps:
- Set a low rate in the dataarchival/LimitPerPolicy
and dataarchival/purgeQueryLimit dynamic system
settings, respectively.
A reasonable low value for these settings is 100. For more information about archive and purge settings, see Creating and configuring case archive settings and Configuring purge cycle settings.
- Run a process with the following jobs, using the low value for the
number of cases:
- pyPegaArchiver
- pyPegaIndexer
- pyPegaPurger
For more information, see Case archiving and purging overview.
- Monitor the progress of your case archiving process. For more information, see Monitoring the progress of your case archival process.
- Evaluate the performance impact and time that the low rate of archive and purge process has on your system.
- Increase the settings for archiving and purging values and run the
archiving process again with increased values.
A faster rate of archiving impacts system resources more, and takes longer to complete.
- Continue to increase the rate to determine that maximum value with which you can complete the process within a low system load duration and with an acceptable system impact.
- Set a low rate in the dataarchival/LimitPerPolicy
and dataarchival/purgeQueryLimit dynamic system
settings, respectively.
- Clear your backlog by using the maximum rate found above. The maximum rate of archiving and purging determines the time frame for clearing your backlog.
- Adjust the archiving and purging process after clearing your backlog.
- If your current rate of archiving and purging meets or exceeds the rate at which cases become eligible for archiving, keep that archiving rate.
- If your current rate of archiving is slower than the rate at which cases become eligible for archiving, plan to run your archival and purge jobs more frequently to archive faster.
Plan to run your archive and purge jobs at an initially fast rate to clear your backlog.
Previous topic Case archiving and purging overview Next topic Creating an archival policy