Historical block / state pruning #6869
Labels
meta-feature-request
Issues to track feature requests.
prio-medium
Resolve this some time soon (tm).
scope-performance
Performance issue and ideas to improve performance.
Problem description
Right now, the longer a user is running Lodestar, the more storage is required. This is not ideal and the only way right now to free up space is by deleting the db and checkpoint sync.
Ideally, we want to clean up historical blocks after a certain time period (e.g
MIN_EPOCHS_FOR_BLOCK_REQUESTS
= ~5 months) to keep storage requirements constant and at the same time be able to serve historical blocks to the network (required by range sync).This will become even more relevant once we enable backfill sync.
Solution description
Clean up historical blocks after certain time period. We might wanna consider putting this behind a feature flag as nodes that are intentionally synced from genesis (or earlier checkpoint) do not want that data to be pruned.
Additional context
Discord discussion
The text was updated successfully, but these errors were encountered: