Skip to content

feat(v2): time-based compaction #4098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Apr 12, 2025

This PR adds time-based compaction. Currently, blocks remain uncompacted until there are enough of them within the tenant-shard-level dimension. This can be problematic, for example, if shards are removed – those blocks will remain in the queue indefinitely (until the shards are added back). Another case where this issue may arise is when ingestion is very slow (e.g., one profile per minute) or intermittent: blocks may contain data that is too far apart, and we don’t want to merge such blocks.

@kolesnikovae kolesnikovae requested a review from a team as a code owner April 12, 2025 09:49
@kolesnikovae kolesnikovae force-pushed the feat/compact-aged-blocks branch 2 times, most recently from 684f8ac to 353da42 Compare April 12, 2025 11:39
@kolesnikovae kolesnikovae force-pushed the feat/compact-aged-blocks branch from 353da42 to 76cfaa9 Compare April 14, 2025 03:00
@kolesnikovae kolesnikovae merged commit 6990316 into main Apr 16, 2025
20 checks passed
@kolesnikovae kolesnikovae deleted the feat/compact-aged-blocks branch April 16, 2025 04:47
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.

None yet

2 participants