Add in max open files per shard

pull/290/head
Paul Dix 2014-02-27 17:43:30 -05:00
parent 8f93eb9336
commit 20d334c3ee
3 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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,