-
Notifications
You must be signed in to change notification settings - Fork 897
Closed
Labels
databasenon-finalityBugs and optimisations related to networks that are not finalizingBugs and optimisations related to networks that are not finalizingoptimizationSomething to make Lighthouse run more efficiently.Something to make Lighthouse run more efficiently.tree-statesOngoing state and database overhaulOngoing state and database overhaulv7.1.0Post-Electra releasePost-Electra release
Description
Description
Lighthouse presently stores 1 state per epoch in the hot database during periods of non-finality. During a multi-week period of non-finality this would lead to hundreds of gigabytes of states being stored and the likely exhaustion of many nodes' disk storage.
Steps to resolve
@dapplion and I have discussed adapting the HDiff approach (from #5978) to the hot database, and think we have a fairly good scheme that goes as follows:
- Store hdiffs in the hot database with
state_root: Hash256
references rather thanslot: Slot
. - Retain the diff path from the most recent snapshot to the split state, while pruning everything else with a slot prior to the split slot.
mrabino1
Metadata
Metadata
Assignees
Labels
databasenon-finalityBugs and optimisations related to networks that are not finalizingBugs and optimisations related to networks that are not finalizingoptimizationSomething to make Lighthouse run more efficiently.Something to make Lighthouse run more efficiently.tree-statesOngoing state and database overhaulOngoing state and database overhaulv7.1.0Post-Electra releasePost-Electra release