You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Epoch threshold used to determine snapshot behavior. When syncing reaches this epoch or later, db-sync is considered to be approaching or at the current tip of the chain. Combined with time-based detection (within 10 days of current time), this ensures snapshots are taken every epoch when near the tip for fast rollback recovery. During earlier epochs or when syncing behind, snapshots are taken every 10 epochs or according to the `lagging` block interval.
630
-
631
-
### Lagging
632
-
633
-
`snapshot_interval.lagging`
634
-
635
-
* Type: `integer`
636
-
* Default: `100000`
637
-
638
-
Number of blocks between snapshots when db-sync is syncing and significantly behind the tip of the chain (more than 10 days behind current time). Less frequent snapshots during initial sync improves performance by reducing expensive disk operations.
628
+
Epoch threshold used to determine snapshot behavior. When syncing reaches this epoch or later, db-sync is considered to be approaching or at the current tip of the chain. Combined with time-based detection (within 10 days of current time), this ensures snapshots are taken every epoch when near the tip for fast rollback recovery. During earlier epochs or when syncing behind, snapshots are taken every 10 epochs.
639
629
640
630
### Example
641
631
642
632
```json
643
633
{
644
634
"snapshot_interval": {
645
-
"near_tip_epoch": 580,
646
-
"lagging": 100000
635
+
"near_tip_epoch": 580
647
636
}
648
637
}
649
638
```
650
639
651
640
### Performance Considerations
652
641
653
642
-**Lower `near_tip_epoch` value**: Start taking frequent epoch-based snapshots earlier in the chain history
654
-
-**Higher `near_tip_epoch` value**: Delay frequent snapshots until later in the chain, improving sync speed for longer
655
-
-**Larger `lagging` value**: Faster initial sync with reduced IOPS, but slower recovery if rollback is needed during sync
656
-
-**Recommended for initial sync**: Use a large `lagging` value (100000+) and appropriate `near_tip_epoch` to maximize sync speed
643
+
-**Higher `near_tip_epoch` value**: Delay frequent snapshots until later in the chain, improving sync speed for longer. During initial sync (before reaching `near_tip_epoch`), snapshots are taken every 10 epochs
657
644
-**Near tip detection**: Automatically switches to epoch-based snapshots when within 10 days of current time, regardless of epoch number
0 commit comments