mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 22:40:39 +02:00
filer: optimize leveldb parameters
This commit is contained in:
1 parent
76cf57a0e1
commit
8123a488cd
1 file changed
+1
-1
@@ -43,7 +43,7 @@ func (store *LevelDBStore) initialize(dir string) (err error) {
|
||||
opts := &opt.Options{
|
||||
BlockCacheCapacity: 32 * 1024 * 1024, // default value is 8MiB
|
||||
WriteBuffer: 16 * 1024 * 1024, // default value is 4MiB
|
||||
CompactionTableSizeMultiplier: 4,
|
||||
CompactionTableSizeMultiplier: 10,
|
||||
}
|
||||
|
||||
if store.db, err = leveldb.OpenFile(dir, opts); err != nil {
|
||||
|
||||
Reference in new issue
Block a user