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

limit compaction size by absolute size, not relative size #273

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

sebastianburckhardt
Copy link
Member

Addresses observed issue where compaction sizes grew too large, causing out of memory.

The fix is to adjust the heuristics so that they never compact more than a fixed limit.

Also, the heuristics no longer suppress compaction based on the size of the mutable section since that can have unpredictable effects on log size management. Instead, compaction is now gated by a minimum on the area being compacted.

@sebastianburckhardt sebastianburckhardt merged commit a909cc7 into dev Jul 7, 2023
@sebastianburckhardt sebastianburckhardt deleted the pr/limit-compaction-size2 branch July 7, 2023 14:16
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.

1 participant