ronin icon indicating copy to clipboard operation
ronin copied to clipboard

consortium-v2/snapshot: prune old, unused snapshots

Open Francesco4203 opened this issue 1 year ago • 2 comments

Only some most recent consortium snapshots are used, so this PR is to prune some old, unused snapshots. The pruning can be done in two ways:

  • Periodically: every day, automatically prune all the snapshots from 6 to 7 days ago
  • Manually: command to prune all the snapshots, keeping only some most current snapshots

Example command to prune all snapshots, keeping 1000 latest ones:

./build/bin/ronin db prune-consortium-snapshot --snapshot.keep-after-pruning=1000 --datadir="path-to-datadir"

Francesco4203 avatar Jun 12 '24 06:06 Francesco4203

@Francesco4203 Could u give some description related to its usage?

huyngopt1994 avatar Jun 18 '24 07:06 huyngopt1994

@huyngopt1994 I have updated the description

Francesco4203 avatar Jun 18 '24 08:06 Francesco4203