Modify Prune Configuration
ESS includes a Prune feature to perform hard delete (i.e., permanently delete):
soft-deleted resources (i.e., files marked as deleted) and
orphan data (i.e., data that are no longer referenced by metadata).
Specifically, Prune consists of two Kubernetes CronJobs :
One to delete “prunable” resources. Prunable resources are resources that have been marked for deletion (i.e., soft-deleted) and are past their
INRUPT_STORAGE_PRUNE_RETENTION_WINDOW.One to delete orphan data.
You can use Kustomize to modify the two CronJobs.
Example Customizations
Configure CronJob to Prune Soft-Deleted Resources
The provided overlays are configured to:
Use a job schedule of every 30 minutes.
Use a
INRUPT_STORAGE_PRUNE_RETENTION_WINDOWofP3D(3 days).Use
INRUPT_STORAGE_PRUNE_PRUNABLE_BATCH_SIZEof10000.Use
INRUPT_STORAGE_PRUNE_ORPHAN_BATCH_SIZEof0. Do not modify for pruning soft-deleted resources.Use the default
COM_INRUPT_STORAGE_METADATA_JDBC_CONNECTIONLIMITER_OPENCONNECTION_TIMEOUT_VALUEof5000milliseconds.
If instead you wish to schedule the job to run every day at midnight ( 0 0 * * * ) and to decrease the INRUPT_STORAGE_PRUNE_RETENTION_WINDOW to 2 days P2D :
Go to your ESS installation directory:
Create a
kustomize-prune-resources.yamlfile with the following content:Modify the
kustomization.yaml(i.e., step 3 of the Applying Your Customizations procedure) to usekustomize-prune-resources.yaml. Specifically, add the highlighted content to thekustomization.yamlfile to thepatchessection:
4. Continue with the rest of the Applying Your Customizations procedure.
Configure CronJob to Prune Orphan Data
The provided overlays are configured to:
Use a job schedule of every 30th minutes from 10 minutes past the hour through 50 minutes past the hour.
Use a
INRUPT_STORAGE_PRUNE_RETENTION_WINDOWofP3D(3 days). Does not affect the pruning of orphan data.Use
INRUPT_STORAGE_PRUNE_PRUNABLE_BATCH_SIZEof0. Do not modify for pruning orphan data.Use
INRUPT_STORAGE_PRUNE_ORPHAN_BATCH_SIZEof80000.Use the default
COM_INRUPT_STORAGE_METADATA_JDBC_CONNECTIONLIMITER_OPENCONNECTION_TIMEOUT_VALUEof5000milliseconds.
If instead you wish to increase the INRUPT_STORAGE_PRUNE_ORPHAN_BATCH_SIZE to 140000 and COM_INRUPT_STORAGE_METADATA_JDBC_CONNECTIONLIMITER_OPENCONNECTION_TIMEOUT_VALUE to 10000 milliseconds.
Go to your ESS installation directory:
Create a
kustomize-prune-orphans.yamlfile with the following content:Modify the
kustomization.yaml(i.e., step 3 of the Applying Your Customizations procedure) to usekustomize-prune-orphans.yaml. Specifically, add the highlighted content to thekustomization.yamlfile to thepatchessection:
Continue with the rest of the Applying Your Customizations procedure.
Last updated