[
https://issues.apache.org/jira/browse/HDDS-17953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-17953:
----------------------------------
Labels: pull-request-available (was: )
> Gate OM scheduled compaction on SST tombstone count
> ---------------------------------------------------
>
> Key: HDDS-17953
> URL: https://issues.apache.org/jira/browse/HDDS-17953
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Ashish Kumar
> Assignee: Ashish Kumar
> Priority: Major
> Labels: pull-request-available
>
> CompactionService currently runs a full compactRange(null, null) on each
> configured OM table at every scheduled interval, regardless of whether
> compaction is actually needed.
> A full-table compaction of the FSO file and directory tables can be expensive.
> Running compaction unconditionally wastes disk I/O and write bandwidth when
> there are insufficient tombstones to justify the operation. It also adds
> avoidable load to a busy OM.
> The objective of this change is to trigger scheduled compaction only when
> sufficient tombstone pressure exists in the SST files that the configured
> compaction policy can process.
> *Proposed Change:*
> Introduce a tombstone-count-based gate in
> CompactionService.CompactTask.call() before invoking compactFully().
> Use the existing RocksDatabase.getLiveFilesMetaData() API to obtain SST
> metadata and calculate the number of point deletion entries for the target
> column family.
> Only count tombstones in levels above the configured bottommost level.
> This filtering is intentional because the scheduled compaction uses the kSkip
> bottommost-level policy. Files already in the bottommost level are skipped by
> the compaction and their tombstones are not expected to be removed by that
> run. Including them in the trigger could cause the service to repeatedly
> execute compaction without reducing the tombstone count.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]