mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 13:07:46 +08:00
filer: optimize leveldb parameters
This commit is contained in:
@@ -43,7 +43,7 @@ func (store *LevelDBStore) initialize(dir string) (err error) {
|
|||||||
opts := &opt.Options{
|
opts := &opt.Options{
|
||||||
BlockCacheCapacity: 32 * 1024 * 1024, // default value is 8MiB
|
BlockCacheCapacity: 32 * 1024 * 1024, // default value is 8MiB
|
||||||
WriteBuffer: 16 * 1024 * 1024, // default value is 4MiB
|
WriteBuffer: 16 * 1024 * 1024, // default value is 4MiB
|
||||||
CompactionTableSizeMultiplier: 4,
|
CompactionTableSizeMultiplier: 10,
|
||||||
}
|
}
|
||||||
|
|
||||||
if store.db, err = leveldb.OpenFile(dir, opts); err != nil {
|
if store.db, err = leveldb.OpenFile(dir, opts); err != nil {
|
||||||
|
Reference in New Issue
Block a user