Managing the data retention policy for asset and risk data
About this task
- Time-based retention policy
-
With a time-based retention policy, the data is purged after a specified period. For example, you can set the retention policy to purge all historical data older than one year.
When you configure a time-based policy, the policy_name parameter is Time and the policy_value parameter indicates the number of days that the historical data is kept.
- Disk-based retention policy
-
With a disk-based retention policy, you specify how much disk space is used to store asset and risk data. The storage includes both active and historical data.
For example, you can specify that the data cannot exceed more than one GB of disk storage. If you have 700 MB of active data, the remaining 300 MB is used for historical data. Historical data that exceeds the 300 MB threshold is purged based on the date that it was created.
When you configure a disk-based policy, the policy_name parameter is DiskUsage and the policy_value parameter indicates the size of the disk storage that is allotted for both active and historical data.
For example, if you want to configure the retention policy to use 2 GB of disk space, calculate the policy value by using this calculation:2G = 2 * 1024 * 1024 * 1024 = 2174483648
The retention policy applies to historical data only. Active data is always retained regardless of age or size.
On initial installation, the default retention policy is disk-based with 1.2 GB of storage.