[Feature] Reduce the Amount of DB Space the Beacon Chain Needs #71
Labels
No Label
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
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/ipld-eth-beacon-indexer#71
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
beaconState
is 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
X
slots we store it everX/Y
slots.Alternative Solutions
BeaconState
at all. It might make sense to have the watchers query thelighthouse
client 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.