config: move crash and stateproof DB defaults to hot dir#5817
Merged
algorandskiy merged 8 commits intoalgorand:masterfrom Nov 16, 2023
Merged
config: move crash and stateproof DB defaults to hot dir#5817algorandskiy merged 8 commits intoalgorand:masterfrom
algorandskiy merged 8 commits intoalgorand:masterfrom
Conversation
Contributor
|
Why? |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5817 +/- ##
==========================================
- Coverage 55.63% 55.61% -0.02%
==========================================
Files 475 475
Lines 66842 66860 +18
==========================================
- Hits 37187 37184 -3
- Misses 27141 27156 +15
- Partials 2514 2520 +6 ☔ View full report in Codecov by Sentry. |
algorandskiy
reviewed
Nov 6, 2023
Contributor
algorandskiy
left a comment
There was a problem hiding this comment.
I agree on the crash db move but do we really write stateproof db that often?
Contributor
Author
|
The stateproof DB is
I guess it depends on how cold you think cold will be.. |
Contributor
algorandskiy
left a comment
There was a problem hiding this comment.
LGTM but use existing file name constants instead of literals
algorandskiy
previously approved these changes
Nov 16, 2023
winder
reviewed
Nov 16, 2023
winder
reviewed
Nov 16, 2023
winder
reviewed
Nov 16, 2023
winder
approved these changes
Nov 16, 2023
Contributor
winder
left a comment
There was a problem hiding this comment.
Changes look good. Left some suggestions that I think should be adopted, but don't need to block the PR.
algorandskiy
approved these changes
Nov 16, 2023
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.
Summary
This moves the crash and stateproof DBs to default to using the hot data directory. Like the ledger DB, they are frequently written while processing consensus and block updates, and are also fairly small in size, so they would benefit from being located in the hot tier.
Resolves #5831
Test Plan
Updated TestEnsureAndResolveGenesisDirs_hierarchy and TestConfiguredDataDirs.
Added TestEnsureAndResolveGenesisDirs_migrate and TestEnsureAndResolveGenesisDirs_migrateFail.