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

pruning is not working #15975

Open
dev-dantealighieri opened this issue Feb 19, 2025 · 7 comments
Open

pruning is not working #15975

dev-dantealighieri opened this issue Feb 19, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@dev-dantealighieri
Copy link

hi,

i have an aptos mainnet node, whichs size passed 5TB, i want to do data pruning

I have the following storage configuration for my node, the disk usage didn't even reduced 100MB after enabling pruning, whats the issue here, how to fix?

storage:
  storage_pruner_config:
    ledger_pruner_config:
      enable: true
      prune_window: 500000000
      batch_size: 10000000

thanks, dante

@dev-dantealighieri dev-dantealighieri added the bug Something isn't working label Feb 19, 2025
@dev-dantealighieri
Copy link
Author

@gregnazario
Copy link
Contributor

@msmouse @grao1991

@grao1991
Copy link
Contributor

If you didn't enable pruning before and just enabled it, it takes some time to reclaim the space.

@dev-dantealighieri
Copy link
Author

how much time we are talking about? my machine is quite powerful, i waited for 2 days but nothing changed? @grao1991

@grao1991
Copy link
Contributor

@dev-dantealighieri That's weird, can you let me know what is the size of each database folder?

@dev-dantealighieri
Copy link
Author

➜  db du -h --max-depth=1
4.5T	./ledger_db
178G	./state_merkle_db
42M	./fast_sync_secondary
58M	./state_sync_db
4.7T	.

@grao1991
Copy link
Contributor

Can you double check if you enabled state merkle pruner? Also if you migrate it to new storage format it would save you some space. https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-97.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants