ethereum-node icon indicating copy to clipboard operation
ethereum-node copied to clipboard

FR: Besu pruning settings

Open stefa2k opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Right now there is no user friendly way to enable/disable pruning for Besu.

Describe the solution you'd like Let the user choose to enable (default) or disable pruning: https://besu.hyperledger.org/en/stable/public-networks/concepts/data-storage-formats/#pruning

Describe alternatives you've considered No pruning would mean more storage resources used.

Additional context

stefa2k avatar Sep 01 '22 06:09 stefa2k

For Besu, I would reuse the component we also used in #719. Important however is that we difference them somehow because of their different functionality.

This would look something like this: SERVICE_SETTING_MODULE

With the icon used being this: AUTO Prunning

daGscheid avatar Nov 02 '22 19:11 daGscheid

the icon is great, but it's hard to read because it's so small

stefa2k avatar Nov 03 '22 07:11 stefa2k

Pruning is being deprecated for BONSAI format and is currently not being updated.

Adding --pruning-enabled=true to the config just prompts a warning in the logs, which basically says that pruning is not being used.

All Besu Stereum nodes till today are deployed with BONSAI but pruning is only supported with FOREST format.

Changing the format while syncing/ while fully synced can cause problems with existing downloaded states: issue

Do we even want to use FOREST with pruning instead of BONSAI? Bonsai already uses less space than FOREST and is faster most of the time. docs

--pruning-enabled=true will still be deployed to all existing and new Stereum nodes because it doesn't cause any problems. If a experienced user decides to use FOREST, he then can easily switch pruning on and off from the service settings

NeoPlays avatar Jan 03 '23 13:01 NeoPlays