adjust hot store options
This commit is contained in:
parent
69a88d41b6
commit
ca8a673b5f
@ -62,10 +62,10 @@ func NewSplitStore(path string, ds dstore.Datastore, cold bstore.Blockstore) (*S
|
||||
path = filepath.Join(path, "hot.db")
|
||||
hot, err := lmdbbs.Open(&lmdbbs.Options{
|
||||
Path: path,
|
||||
InitialMmapSize: 256 << 20, // 256MiB.
|
||||
InitialMmapSize: 1 << 30, // 1GiB.
|
||||
MmapGrowthStepFactor: 1.25, // scale slower than the default of 1.5
|
||||
MmapGrowthStepMax: 512 << 20, // 512MiB.
|
||||
MaxReaders: 32,
|
||||
MmapGrowthStepMax: 1 << 32, // 4GiB
|
||||
MaxReaders: 192,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user