[Feature] Reduce the Amount of DB Space the Beacon Chain Needs #71
Closed
opened 2022-06-24 12:55:37 +00:00 by abdulrabbani00
·
3 comments
No Branch/Tag Specified
Labels
Clear labels
backlog
beacon
bug
critical
documentation
duplicate
enhancement
epic
feature
good first issue
help wanted
in review
invalid
question
test
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
We will work on this at a later time.
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
An Epic
We need a new feature
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
We need to add test
This will not be worked on
An issue or PR manually copied from GitHub.
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/ipld-eth-beacon-indexer#71
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Table of contents generated with markdown-toc
Overview
Request
With the current estimations, we believe it would take about 396GB of day per day to store the
beaconState.. This amount of data is unfeasible to store, therefore we need another solution.Potential Solution
Store Intermediary States and Build the State as Needed.
One way to drastically reduce the footprint of the
beaconStateis to store every X number of states. We can ipld-lize these states. If someone asks for a beaconState in-between the intermediary states, the watchers can rebuild the state desired state on the fly.i. The DB will contain the correct
stateRoot, so we can check after rebuilding each state to ensure it was done correctly.i. If we ever see that there is a high demand for the
beaconState, we can consider further solutions.a. Storing the state closer together, instead of storing it every
Xslots we store it everX/Yslots.Alternative Solutions
BeaconStateat all. It might make sense to have the watchers query thelighthouseclient every time they want aBeaconState. If we use the highest SPRP offered, we can load the beaconState at a max of 155ms (best case scenario).Additional Context
By avoiding storing beacon state in our DB, growth rate is currently around 600MB/day.
I think this one is resolved now?
Agreed, it is superseded by: https://github.com/cerc-io/ipld-eth-beacon-indexer/issues/77 we still need to figure how to store state data in a compact manner.