Skip to content

tsdb: decouple OOO compaction from in-order head compaction#18434

Open
anhtranbk wants to merge 1 commit intoprometheus:mainfrom
anhtranbk:fix/remove-ooo-head-compaction-dependency
Open

tsdb: decouple OOO compaction from in-order head compaction#18434
anhtranbk wants to merge 1 commit intoprometheus:mainfrom
anhtranbk:fix/remove-ooo-head-compaction-dependency

Conversation

@anhtranbk
Copy link
Copy Markdown

@anhtranbk anhtranbk commented Apr 3, 2026

Allow OOO head compaction to run independently instead of being triggered after in-order head compaction.

Key changes:

Fixes #11834

This PR continues the work started in #11847.

Release notes for end users (ALL commits must be considered).

Reviewers should verify clarity and quality.

NONE

@anhtranbk anhtranbk force-pushed the fix/remove-ooo-head-compaction-dependency branch 5 times, most recently from c226785 to b9f5f10 Compare April 6, 2026 02:36
Allow OOO head compaction to run independently instead of being triggered
after in-order head compaction.

Key changes:
- Remove implicit OOO compaction after in-order compaction
- Schedule OOO compaction via a configurable timer (OutOfOrderCompactInterval, default: 2h)
- Convert compaction metrics to CounterVec to track head vs ooo separately

Signed-off-by: Anh Tran <[email protected]>
@anhtranbk anhtranbk force-pushed the fix/remove-ooo-head-compaction-dependency branch from b9f5f10 to b6ec54f Compare April 6, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove OOO Head compaction's dependency on the in-order Head compaction

1 participant