Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add command to (slowly) prune lotus chain datastore #3876

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

whyrusleeping
Copy link
Member

No description provided.

@whyrusleeping
Copy link
Member Author

Decent example usage:

./lotus-shed state-prune --delete-up-to=5000000 --use-bloom-set

Note: the gc part at the end takes a loooong time and doesnt really seem to clear everything up. You can run:

./lotus-shed state-prune --only-ds-gc

to just run badger gc in a loop for 20 times.

&cli.StringFlag{
Name: "repo",
Value: "~/.lotus",
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magik6k
Copy link
Contributor

magik6k commented Sep 16, 2020

lint sad

@magik6k magik6k force-pushed the feat/pruning-command branch from c9718eb to 1319d70 Compare October 2, 2020 21:54
@magik6k magik6k merged commit 44e352c into master Oct 2, 2020
@magik6k magik6k deleted the feat/pruning-command branch October 2, 2020 22:04
@s0nik42
Copy link

s0nik42 commented Oct 15, 2020

Hello ! Is this safe to use compared to the previous proposition of @ribasushi to delete the chain content folder and import the pruned version of the chain ?

Thank you !

Julien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants