You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling custom LevelDB (or RocksDB) options would allow validators and app developer provide aggressive pruning options. Without aggressive pruning we are not able to reclaim space for months (when pruning is enabled).
We did this with rocksdb by adding an API NewDBWithRawDB, so user can open the db in whatever way they want, we just need to provide similar APIs for all supporting backends I think.
Then in server start command, allow user to supply a custom db opener callback.
cosmos-sdk/server/start.go
Line 269 in ccc5245
As Node is initialized with DefaultDBProvider (Tendermint), applications are not able to expose custom DB Options. Tendermint DB supports DB with custom options - https://github.com/tendermint/tm-db/blob/358078c8bed0eb5113fef6bea376d1a620757308/goleveldb/db.go#L24 but application are not able to use it as CosmosSDK only allows default db provider.
Enabling custom LevelDB (or RocksDB) options would allow validators and app developer provide aggressive pruning options. Without aggressive pruning we are not able to reclaim space for months (when pruning is enabled).
We have thread over here explaining how default Level DB compactions does not reclaim space for months - https://twitter.com/valnodes/status/1435465250803945472
The text was updated successfully, but these errors were encountered: