-
Notifications
You must be signed in to change notification settings - Fork 215
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
[Merged by Bors] - prune active set from ballot blob #5032
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #5032 +/- ##
=========================================
- Coverage 77.1% 77.0% -0.1%
=========================================
Files 257 257
Lines 30277 30277
=========================================
- Hits 23349 23343 -6
- Misses 5402 5408 +6
Partials 1526 1526
|
b9ecc3b
to
bca55ef
Compare
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.
migrations need to be adjusted, as i had to add one
bca55ef
to
91f5b2c
Compare
bors merge |
@@ -34,6 +34,7 @@ In order to enable provide following configuration: | |||
Ephemeral data are deleted and state compacted at the time of upgrade. In steady-state, data is pruned periodically. | |||
* [#5021](https://github.com/spacemeshos/go-spacemesh/pull/5021) Drop support for old certificate sync protocol. | |||
* [#5024](https://github.com/spacemeshos/go-spacemesh/pull/5024) Active set will be saved in state separately from ballots. | |||
* [#5032](https://github.com/spacemeshos/go-spacemesh/pull/5032) Ativeset data pruned from ballots. |
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.
we should put a bit more data about this. e.g expected time and amount of storage required to perform this migration (e.g. WAL is the size of database right?) . we can do that after benchmarking in cloud
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.
yes. WAL will be the size of the pre-vacuumed db (it's being used as a tmp storage during vacuum).
will update after testing.
## Motivation Closes #4985 ## Changes - actually prune active set from ballot blobs in db - use a empty migration to facilitate the pruning. we only want to prune/vacuum/checkpoint once per software upgrade the code allow any upgrade from migration <=4 to 5 to - extract active set from ballots - prune active set from blob - vacuum and checkpoint the final size of the state should be < 1GB
Build failed (retrying...): |
## Motivation Closes #4985 ## Changes - actually prune active set from ballot blobs in db - use a empty migration to facilitate the pruning. we only want to prune/vacuum/checkpoint once per software upgrade the code allow any upgrade from migration <=4 to 5 to - extract active set from ballots - prune active set from blob - vacuum and checkpoint the final size of the state should be < 1GB
bors cancel |
Canceled. |
bors merge |
## Motivation Closes #4985 ## Changes - actually prune active set from ballot blobs in db - use a empty migration to facilitate the pruning. we only want to prune/vacuum/checkpoint once per software upgrade the code allow any upgrade from migration <=4 to 5 to - extract active set from ballots - prune active set from blob - vacuum and checkpoint the final size of the state should be < 1GB
Pull request successfully merged into develop. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Motivation
Closes #4985
Changes
we only want to prune/vacuum/checkpoint once per software upgrade
the code allow any upgrade from migration <=4 to 5 to
the final size of the state should be < 1GB