-
Notifications
You must be signed in to change notification settings - Fork 22
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
Feature: export leveldb parameter #204
base: dev
Are you sure you want to change the base?
Feature: export leveldb parameter #204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we should expose more and more leveldb options here.
Shouldn't we provide higher level and more clear options to our users.
People don't care about leveldb
or xxxdb
exactly, they just need a well-inner-configured and stable storage.
leveldb optimization is complex, there is no silver bullet (especially the unmaintained leveldb library) Using transparent file compression can save 60%+ storage space, but the default configuration of leveldb uses snappy compression, which will reduce the efficiency of transparent file compression, and the performance of the compression library used by goleveldb is not as good as the C library(used by the file system in the kernel) |
|
||
CompactionTableSizeMultiplier float64 | ||
|
||
DisbableCompression bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After disable
, all Compaction***
would not work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this is leveldb snappy compression(storage data level), not related to Compaction***
(key-value level)
@abrahamcruise321 What's your opinion? |
Description
CompactionTableSizeMultiplier
, Control the file number of per-levelCompression
config (in btrfs/zfs system, transparent file compression better)Changes include
Checklist