Import snapshot directly into hotstore for nodes running splitstore #10554
Labels
area/chain
Area: Chain
effort/hours
Effort: Hours
kind/feature
Kind: Feature
need/team-input
Hint: Needs Team Input
P2
P2: Should be resolved
Checklist
Ideas
.Lotus component
What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.
Coldstore shouldn't track unwanted state in discard mode. Today we waste ~100 G of disk space no matter what when syncing from snapshot
Describe the solution you'd like
import-snaphsot daemon flag should import the chain into the hotstore if the node is configured to run with splitstore.
Basically repo should create a blockstore using hotstore instead of universal store location if applicable. We might want to make a new blockstore location that automatically does this or we could manually check the repo config during import.
Describe alternatives you've considered
We could also make it easier to purge the coldstore of snapshot state by improving chain prune cold-compact but it would be better to prevent this problem in the first place than to keep it around and also create a solution
Additional context
No response
The text was updated successfully, but these errors were encountered: