Friday, August 15, 2014

Process Scheduler Purge Process Setup

Process Scheduler Purge process setup:
**********************************
Note : PRCSYSPURGE is a application engine program, eventually if we run on any particular scheduler, it will be routed to all schedulers which are in the application, So make sure all process scheduler must be able to process the apps engine programs , if not modify the scheduler definition page and add the application engine to run on the scheduler

Step 1: Create the recurrence
People Tools -> Process scheduler -> Recurrences -> Add New Value like Weekly – Purge <Time>
Recommended you to create your own recurrence definition. Normally, there will be delivered Weekly-Friday, daily and also there will be customized ones, Please do not use them and don’t change the recurrence times, because that will be used in some place in the some recurrence scheduled jobs.

Please see the screen shot below:


In the above definition 3 major things has been modified.
1) Schedule Next recurrence when: recommended to select Prior recurrence has completed
2) Recurrence Pattern: weekly/daily/Monthly, Normally we use to run weekly once, so I have selected weekly and the day of the week is Friday, it’s dependent on the requirement
3) Start Request: Select date and time of the execution and save the page,

Step 2:
Go to People Tools -> Process scheduler ->System Settings
On System Settings page, put the number of retention days based on your requirement as 90 days/some days
And select the Primary operating System, Like NT/UNIX
Recommended you to select the OS where master scheduler is running
And system load balancing Option as Assign to server in Any O/S

Go to Purge Settings page:
Set the next Purge date as specified on Start Request time in recurrence page and time as well and also specify the recurrence what we have defined in first step:

See the screen shot below:
And specify the check the box Purge Process files,
And also specify the days before purge for all type of Run status, here I have specified as 90 days, and also enabled them
Finally, save the page.

Step 3:
Go to People Tools -> Process scheduler -> System Process Requests -> and select run control id
And select the master scheduler name from the server option and recurrence what we have specified,
And select PRCSYSPURGE process from the list of process names and click OK.
Now go to process monitor, there will be one job scheduled for specified time:
* Updates statistics to all of the process request tables before deleting content.
* Purges all process requests with a last update date that is past the Days before Purge value for the specified run statuses.
* Deletes all of the sub directories in the Log_Output directory that are associated with the process requests that are purged from the process request table if the Purge Process Files option was specified.
* Purges the report repository tables with expired dates, based on the specified number of retention days.
* Deletes all directories from the report repository that are associated with processes purged from the report repository tables.
* Schedule the Application Engine PRCSRVCLN program if more than one active Process Scheduler server exists. PRCSRVCLN cleans up the Log/Output directory for all active servers.

No comments :

Post a Comment