-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Does not allow to provide custom DB (Level DB) Options #10212
Comments
@moniya12 which setting would you want to add? |
exposing this to the application makes sense to me. @alexanderbez thoughts on including this in the design of store v2? |
We did this with rocksdb by adding an API |
Yeah we'll do this in the store V2 design, although we'll stick with RocksDB as the default. |
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: