filer: optimization for leveldb, add leveldb2

large filer db may see high CPU and disk usage due to background compaction
This commit is contained in:
Chris Lu
2019-05-17 17:33:49 -07:00
parent 7e0c3bb732
commit 0fe286a6ca
5 changed files with 327 additions and 1 deletions

View File

@@ -63,6 +63,12 @@ enabled = false
[leveldb]
# local on disk, mostly for simple single-machine setup, fairly scalable
enabled = false
dir = "." # directory to store level db files
[leveldb2]
# local on disk, mostly for simple single-machine setup, fairly scalable
# faster than previous leveldb, recommended.
enabled = true
dir = "." # directory to store level db files