Over the time there are chances of piling up of millions of database records for the removed or expunged resources. The presence of a lot of useless records in the database can also affect the performance of the cloud so it is needed to purge such entries systematically.
Systematic means for purging expunged resources or extra database entries.
purgeExpungedResources
: Purge expunged resourcesParameters:
Parameter name | Type | Required | Description |
---|---|---|---|
resourcetype | String | No | The type of the resource which needs to be purged. Supported types: VirtualMachine |
batchsize | Number | No | The size of batch used during purging |
startdate | String | No | The start date range of the expunged resources used for purging (use format "yyyy-MM-dd" or "yyyy-MM-dd HH:mm:ss") |
enddate | String | No | The end date range of the expunged resources used for purging (use format "yyyy-MM-dd" or "yyyy-MM-dd HH:mm:ss") |
createServiceOffering
New parameter named purgeresources to be added in both API and API response.
Config name | Default value | Description |
---|---|---|
| false | Whether to run a background task to purge the expunged resources |
| (empty) | A comma-separated list of resource types that will be considered by the background task to purge the expunged resources. Currently only VirtualMachine is supported. An empty "value will result in considering all resource types for purging |
| 86400 | Interval (in seconds) for the background task to purge the expunged resources |
| 300 | Initial delay (in seconds) to start the background task to purge the expunged resources task. |
| 50 | Batch size to be used during expunged resources purging. |
| (empty) | Start time to be used by the background task to purge the expunged resources. Use format yyyy-MM-dd or yyyy-MM-dd HH:mm:ss . |
| 30 | The number of days in the past from the execution time of the background task to purge the expunged resources for which the expunged resources must not be purged. To enable purging expunged resource till the execution of the background task, set the value to zero. |
| 180 | Delay (in seconds) to execute the purging of an expunged resource initiated by the configuration in the offering. Minimum value should be 180 seconds and if a lower value is set then the minimum value will be used. |
None