-
Notifications
You must be signed in to change notification settings - Fork 786
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
Improve database compaction and prune-states
#5142
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
michaelsproul
changed the title
Db compaction tweaks
Improve database compaction and Jan 30, 2024
prune-states
michaelsproul
added
ready-for-review
The code is ready for review
low-hanging-fruit
Easy to resolve, get it before someone else does!
labels
Feb 2, 2024
realbigsean
requested changes
Feb 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the addition of blob db compaction and inspection!!
realbigsean
added
waiting-on-author
The reviewer has suggested changes and awaits thier implementation.
and removed
ready-for-review
The code is ready for review
labels
Feb 7, 2024
realbigsean
approved these changes
Feb 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
realbigsean
added
ready-for-merge
This PR is ready to merge.
and removed
waiting-on-author
The reviewer has suggested changes and awaits thier implementation.
labels
Feb 7, 2024
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 6f442f2 |
5 tasks
danielrachi1
pushed a commit
to danielrachi1/lighthouse
that referenced
this pull request
Feb 14, 2024
* Fix no-op state prune check * Compact freezer DB after pruning * Refine DB compaction * Add blobs-db options to inspect/compact * Better key size * Fix compaction end key
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
database
low-hanging-fruit
Easy to resolve, get it before someone else does!
ready-for-merge
This PR is ready to merge.
v5.0.0
Q1 2024
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Addressed
I noticed that
prune-states
doesn't actually clear any space on disk because we don't compact the freezer database after running it.Proposed Changes
lighthouse db compact
command for manually compacting specific columns in a specific DB (hot, freezer or blobs).--blobs-db
option tolighthouse db inspect
(andcompact
) so we can inspect the blobs DB as well as the freezer.Additional Info
I've manually tested the tree-states version of these changes (#5097) and the compaction works correctly.