Pruning

ESS provides a pruning feature to perform hard deletes of soft-deleted resources and orphan data.

The pruning process operates in multiple iterations with configurable batch sizes. This approach processes smaller batches of resources per iteration, reducing peak system load and memory consumption while allowing fine-grained control over the total processing time through the maximum iterations parameter.

Pruning (Hard Deletes)

Prune consists of two Kubernetes CronJobsarrow-up-right :

  • 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. Orphan data are resource data without associated metadata.

circle-exclamation

Configuration

Configuration to Prune Soft-Deleted Resources

For soft-deleted resources, Prune has the following configurations:

To configure the Prune jobs, see Modify Prune Configuration

Configuration to Prune Orphan Data

For orphan data, Prune has the following configurations:

To configure the Prune jobs, see Modify Prune Configuration

Observability

circle-exclamation

For pruning jobs, the additional fields include:

  • an mdc (managed diagnostic context) field that can be used for correlation;

  • various pruning metrics.

The following lists the various pruning metrics that appear in the log messages (listed by the messageId ):

INFO-Level Messages

  • STORAGEPRUNE000001 (Pruning start process)

    Field
    Description

    retentionWindow

    The value of the configured retention window in milliseconds.

    batchSize

    The value of the configured batch size (either prunable or orphan).

  • STORAGEPRUNE000002 (Prune process completion)

    Logged when the entire pruning process completes.

  • STORAGEPRUNE000003 (Pruner completed)

    Field
    Description

    pruner

    The name of the pruner that completed (e.g., StorageMetadataPruner, StorageOrphanPruner, JdbcViewDefinitionPersistence, JdbcViewBindingPersistence).

    count

    The total number of items pruned by this pruner.

WARNING-Level Messages

  • STORAGEPRUNE000004 (Maximum iterations reached)

    Field
    Description

    pruner

    The name of the pruner that reached the iteration limit.

    maxIterations

    The configured maximum iterations value.

    This warning indicates that more items may remain to be pruned. They will be processed in subsequent scheduled job runs.

Last updated