-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix: Change default pruning options #52
fix: Change default pruning options #52
Conversation
This is kinda crazy , looks like the config message has always been extremely wrong??? |
Or are these defaults being changed just not whats happening? Like if keep-recent was 21days worth of blocks, state synced nodes wouldn't have issues |
Yeah I've noticed. I thought this was different because we already have overwritten default pruning settings at some point, but just noticed that we haven't and it's the same for cosmos sdk as well. I'll ensure that there isn't anywhere else that's handling deafult pruining settings once I get up |
Can we change keep-every to Can we update the docs to point out thats 1 week worth of states. Can we also make pruning interval 100 blocks. Once we do that, LGTM to merge! Thanks for making this PR! |
for posterity, we confirmed the defaults were changed as this PR suggests, with never updating the config. This honestly explains a lot of the state bloat. The docs mismatch got introduced here: https://github.com/cosmos/cosmos-sdk/pull/9859/files (Thanks @UnityChaos for finding this) |
362880 is meant to be the unbending period which should be for validators in the case of needing to verify evidence, but in 99.9% cases evidence is seen within a block. For now its not an issue, but in the far future it may be. |
If thats the reason, theres an architecture problem. You don't need any old state, you only need the last |
Dang I said the wrong thing in my comment, so sorry. I intended keep-recent = 100k, keep-every = 0. I'm so sorry, I'll commit the fix and merge EDIT: Ah perfect, you interpreted what I intended! 😂 |
I think based off the comments that was the reasoning, but agree its not needed |
* Change default pruning settings * Change config messages * Change keep-every to 100k * Updates Co-authored-by: ValarDragon <dojha12@gmail.com>
Description
Current default pruning options keep every 100th height in addition to the latest 362880 heights, which in most cases have no need to keep this much, unless a node wants to run historical queries. This should not be the default case- this PR suggests an override in the default pruning settings as the following:
Additionally, a significant docs mismatch has been underlying for default pruning options, where keep-every was 100, not 500 as stated.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change