Add in max open files per shard
parent
8f93eb9336
commit
20d334c3ee
|
@ -72,7 +72,7 @@ query-shard-buffer-size = 1000
|
|||
|
||||
# Maximum mmap open files, this will affect the virtual memory used by
|
||||
# the process
|
||||
max-open-files = 100
|
||||
max-open-files = 40
|
||||
|
||||
# These options specify how data is sharded across the cluster. There are two
|
||||
# shard configurations that have the same knobs: short term and long term.
|
||||
|
|
|
@ -69,7 +69,7 @@ query-shard-buffer-size = 1000
|
|||
|
||||
# Maximum mmap open files, this will affect the virtual memory used by
|
||||
# the process
|
||||
# max-open-files = 100
|
||||
max-open-files = 40
|
||||
|
||||
# These options specify how data is sharded across the cluster. There are two
|
||||
# shard configurations that have the same knobs: short term and long term.
|
||||
|
|
|
@ -74,6 +74,7 @@ func NewLevelDbShardDatastore(config *configuration.Configuration) (*LevelDbShar
|
|||
opts.SetBlockSize(64 * ONE_KILOBYTE)
|
||||
filter := levigo.NewBloomFilter(SHARD_BLOOM_FILTER_BITS_PER_KEY)
|
||||
opts.SetFilterPolicy(filter)
|
||||
opts.SetMaxOpenFiles(config.LevelDbMaxOpenFiles)
|
||||
|
||||
return &LevelDbShardDatastore{
|
||||
baseDbDir: baseDbDir,
|
||||
|
|
Loading…
Reference in New Issue