Skip to content

Commit

Permalink
Increase block cache size to 8GB
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Apr 3, 2019
1 parent 9de65e2 commit 78526b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/rocks/rocksdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func NewRocksDBStoreOpts(opts *Options) (*RocksDBStore, error) {
globalOpts.SetCreateIfMissingColumnFamilies(true)
//globalOpts.SetMaxOpenFiles()
globalOpts.SetEnv(env)
blockCache := rocksdb.NewLRUCache(6*1024*1024*1024, 0.4) // 6GB
blockCache := rocksdb.NewLRUCache(8*1024*1024*1024, 0.4) // 8GB
var stats *rocksdb.Statistics
if opts.EnableStatistics {
stats = rocksdb.NewStatistics()
Expand Down

0 comments on commit 78526b3

Please sign in to comment.