Cleaning up deployment history files
You can clean up the deployment history files to reduce the database storage that HCL DevOps Deploy (Deploy) uses.
About this task
- By configuring the cleanup settings from the system settings. See Configuring the system settings.
- By configuring the cleanup settings for specific environments. See Configuring individual environment settings
- By configuring the cleanup setting for multiple environments.Configuring bulk cleanup settings
For the cleanup process to start and run according to specifications, the cleanup process must be turned ON in by your administrator in System Settings and Use Deployment History Cleanup must be selected in environment settings. By default, the deployment history cleanup settings in both the administrator and environment settings are turned off.
Enable Deployment History Cleanup option in System Settings (administrator's setting) | Use Deployment History Cleanup check box in environment settings | Result |
---|---|---|
On | Selected | Cleanup starts as specified for deployments that are associated with this environment. |
On | Cleared | Cleanup does not start for deployments that are associated for this environment. |
Off | Selected | Cleanup does not start for deployments that are associated with this environment. |
While the administrator has the Enable Deployment History Cleanup option turned off, even when a user selects Use Deployment History Cleanup for an environment, the deployment history cleanup process remains turned off.
- The deployments are associated with an active inventory of any type, such as deployed component version, resource, resource configuration, and environment properties.
- The server is in an HA cluster and one of the instances is actively running a deployment history clean up job.
Configuring the system settings
Before you begin
About this task
Procedure
- In Deploy, click the Settings tab, and then in the System column, click System Settings.
- Scroll to the Process History Cleanup area.
- Set Enable Deployment History Cleanup option to On.
- In Daily Cleanup Start Time, select the hour to start the daily cleanup process.
- In Daily Cleanup Duration (hours), specify the number of hours for the cleanup process to run.
- In Days to Retain Deployment History, specify the default number of days to keep the deployment history before the cleanup process removes the history.
Results
Configuring individual environment settings
Before you begin
About this task
Procedure
- Click Applications, click an application, click an environment, click Configuration, and then click Basic Settings.
- Select Use Deployment History Cleanup.
-
Perform any one of the following steps:
- Select Use Default Deployment History Retention to keep deployment history details for the number of days that the administrator specified.
- Clear the Use Default Deployment History Retention option and specify the number of days to keep deployment history details in the Days to Retain Deployment History field.
Results
Example usage
About this task
If the date is 14 December 2016, and you have used the following settings:
- Enable Deployment History Cleanup in System Settings: Enabled
- Daily Cleanup Start Time in System Settings:
9:00 PM
- Daily Cleanup Duration (hours) in System Settings:
3
- Days to Retain Deployment History in System Settings:
15
- Use Deployment History Cleanup in the environment settings: Enabled
- Use Default Deployment History Retention in the environment settings: Enabled
At 9:00 PM on 14 December 2016, the deployment history begins to run for 3 hours. During the 3 hours, all records of the deployment that are 15 days old and older are deleted. The three hours might be insufficient to delete all records that meet the cleanup criteria. In this case, cleanup resumes operations the next day as scheduled. If you need to clear more disk space, increase the cleanup duration.
- If the cleanup settings are changed before 14 December 9:00 PM, then items that are deleted will not be the same as in this example.
- You can make changes to the settings after this date and change it multiple times.
- At any time, the administrator or users with privileges can change whether the cleanup process runs, what cleanup removes, when cleanup starts, and how long cleanup runs.