Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.


Info
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).


Excerpt

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:

Code Block
languagetext
%PROGRAMDATA%\CAST\AipConsole\AipNode\aip-node-app.properties

Find the following section:

Code Block
languagetext
# Cron configuration to run maintenance tasks on node, like snapshot and version cleanup tasks (defaults to running every weekday evening at 23h00)
# Note that no job will run if settings won't allow it
node.maintenance.cron=0 0 23 * * MON-FRI

Modify any of the six parameters that are listed in this order:

  • seconds (0-59)
  • minutes (0-59)
  • hours (0-23)
  • date of the month (1-31)
  • month (1-12 or JAN-DEC)
  • days of the week (0-6 where Sunday=0 or 7, or SUN, MON, TUE, WED, THU, FRI, SAT, or range of days MON-FRI)

For example to change to running the job at 1am on a Sunday:

Code Block
languagetext
# Cron configuration to run maintenance tasks on node, like snapshot and version cleanup tasks (defaults to running every weekday evening at 23h00)
# Note that no job will run if settings won't allow it
node.maintenance.cron=0 0 1 * * SUN

Save the file and restart the AIP Node to ensure the change is taken into account.

...