Prune spendjournal depth - #8
Open
allocz wants to merge 1 commit into
Open
Conversation
This patch implements spend journal pruning by deleting spend journal entries older than the default target of 288 entries, this means that we can process up to 288 blocks (~2 days) of chain re-org. Previously, archival nodes stored all the spend journal entries forever, ~75GiB of the ~90GiB used by leveldb was being used by the spend journal. This patch makes possible to run archive nodes with better performance in devices constrained in RAM and SSD, by keeping leveldb in a small SSD and the blocks in an HDD.
Owner
Author
|
Note: for nodes with IBD complete, a manual leveldb compaction should be ran to release the storage used by the deleted data. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This patch implements spend journal pruning by deleting spend journal entries older than the default target of 288 entries, this means that we can process up to 288 blocks (~2 days) of chain re-org.
Previously, archival nodes stored all the spend journal entries forever, ~75GiB of the ~90GiB used by leveldb was being used by the spend journal.
This patch makes possible to run archive nodes with better performance in devices constrained in RAM and SSD, by keeping leveldb in a small SSD and the blocks in an HDD.