These options allow you to configure a snapshot retention policy for all applications managed by AIP Console:
|Delete the snapshots if they are older than X day(s)||Disabled by default. This option allows you to configure a retention policy that will delete any snapshot for any Application that is older than X number of days.|
|Keep minimum X snapshot(s) per application||Disabled by default. This option allows you to configure a minimum number of snapshots to retain for any given Application.|
|Keep maximum X snapshot(s) per application||Disabled by default. This option allows you to configure a maximum number of snapshots to retain for any given Application.|
|If you are using embedded Dashboards, the dashboard data will be cleaned up when a snapshot is deleted.|
All three options can be used in conjunction. The order of priority when multiple options are active is as follows:
Therefore priority is given to ensuring that the minimum number of snapshots is always retained (if this option is enabled), even if those snapshots might be older than the number of days specified in the option Delete the snapshots if they are older than X day(s).
If any of these parameters are enabled, a scheduled task will be run every weekday at 2300 to identify if any snapshots must be deleted for an application. This task will first identify if there are snapshots to be removed and then launch a snapshot cleanup job if required, which will be responsible for removing the snapshots and cleaning any data linked to this snapshot in the CAST Storage Service/PostgreSQL instance.
|Note that this cleanup job is responsible for cleaning up both snapshots and versions (see the equivalent option for versions Administration Center - Settings - Version Strategy).|
Modifying the job schedule
You can modify the timing of the cleanup job using the following .properties file - this file exists on each AIP Node, therefore if you want the job schedule to run at the same time on all AIP Nodes, you will need to make the same change on all AIP Nodes:
Find the following section:
Modify any of the six parameters that are listed in this order:
For example to change to running the job at 1am on a Sunday:
Save the file and restart the AIP Node to ensure the change is taken into account.