forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 10
add startup safety check for massive pruning operations #555
Copy link
Copy link
Closed
Labels
A-pruningArea: pruningArea: pruningW-historical-proofsWorkstream: historical-proofsWorkstream: historical-proofs
Description
Describe the feature
The op-proofs ExEx runs an automated prune_task to enforce the configured proofs_history_window (e.g., 7 days). Currently, this task starts immediately when the node launches.
If a node operator drastically reduces the retention window in the configuration (e.g., changing from 30 days to 7 days), the pruner will attempt to delete millions of blocks of historical data in the first run.
This causes:
- Write Locks: The massive delete transaction locks the MDBX database tables for an extended period.
- Performance Degradation: The I/O storm from deleting millions of keys stalls the main execution pipeline, potentially causing the node to fall out of sync.
Solution
We should implement a "Safety Threshold" check during the ExEx initialization phase, before the background pruner is spawned.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-pruningArea: pruningArea: pruningW-historical-proofsWorkstream: historical-proofsWorkstream: historical-proofs
Type
Projects
Status
Done