Skip to content
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

feat(v2): extend period for truncation, do not truncate all blocks #3548

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

aleks-p
Copy link
Contributor

@aleks-p aleks-p commented Sep 10, 2024

Currently in the v2 arch we delete all blocks older than 12 hours. This was added when compaction wasn't fully in place, as a way to prevent ever increasing resource usage. Compaction is now in place, but without the metastore index and its time-based block partitioning we can still accumulate many blocks over a longer period. Aside from high resource usage, this can make the read path slower since we currently scan all blocks to create query plans.

This PR makes truncation less aggressive. Alternatively we could remove truncation altogether but I think it makes more sense to do that once we have the metastore index.

@aleks-p aleks-p requested a review from a team as a code owner September 10, 2024 12:25
@aleks-p aleks-p merged commit 0157bd9 into main Sep 10, 2024
18 checks passed
@aleks-p aleks-p deleted the v2/improve-block-truncation branch September 10, 2024 17:25
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.

2 participants