Skip to main content

SNAPSHOT_SLOT_BUDGET

Constant SNAPSHOT_SLOT_BUDGET 

Source
const SNAPSHOT_SLOT_BUDGET: usize = _ /* 1_048_576usize */;
Expand description

Storage slots that the snapshots of all workers may copy together. Each snapshot holds a full copy of the backend, so workers keep fewer snapshots as their states grow, but at least two, so a run resumed from one snapshot can still replace the other.