Skip to content
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

DB Improvements: Snappy compression, remove some unnecessary batch / goroutines #4125

Merged
merged 12 commits into from
Nov 27, 2019

Conversation

prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Nov 27, 2019

As title describes.

Seeing 50+blk/s on non archival nodes. 30+ blk/s on archival nodes.

Add --snappy flag to migrate to snappy compressed database and faster sync times.

Rollout schedule:

  • This PR enables opt-in snappy compress
  • Next PR will enable snappy by default for new database
  • The following PR after that will deprecate snappy feature flag and enable for all

@prestonvanloon prestonvanloon marked this pull request as ready for review November 27, 2019 03:33
@prestonvanloon prestonvanloon requested review from rauljordan, terencechain and nisdas and removed request for rauljordan November 27, 2019 03:33
@codecov
Copy link

codecov bot commented Nov 27, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@04df922). Click here to learn what that means.
The diff coverage is 62.43%.

@@            Coverage Diff            @@
##             master    #4125   +/-   ##
=========================================
  Coverage          ?   22.15%           
=========================================
  Files             ?       64           
  Lines             ?     4446           
  Branches          ?        0           
=========================================
  Hits              ?      985           
  Misses            ?     3352           
  Partials          ?      109

@prylabs-bulldozer prylabs-bulldozer bot merged commit e203f66 into master Nov 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the remove-batch-attestations branch November 27, 2019 06:33
@prestonvanloon
Copy link
Member Author

Note that compression saves about 25% disk I/O and storage

cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
…goroutines (prysmaticlabs#4125)

* do not use batch for SaveAttestations
* use snappy compression
* Encode / decode everything with snappy
* Add snappy migration path
* batch is probably fine...
* fix test
* gofmt
* Merge branch 'master' of github.com:prysmaticlabs/prysm into remove-batch-attestations
* add sanity check
* remove that thing
* gaz
* Merge branch 'master' of github.com:prysmaticlabs/prysm into remove-batch-attestations
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
…goroutines (prysmaticlabs#4125)

* do not use batch for SaveAttestations
* use snappy compression
* Encode / decode everything with snappy
* Add snappy migration path
* batch is probably fine...
* fix test
* gofmt
* Merge branch 'master' of github.com:prysmaticlabs/prysm into remove-batch-attestations
* add sanity check
* remove that thing
* gaz
* Merge branch 'master' of github.com:prysmaticlabs/prysm into remove-batch-attestations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants