From 2cd567b112037cc943d6d640be11afc7aa2208f9 Mon Sep 17 00:00:00 2001 From: liuhongtong Date: Thu, 16 Mar 2017 15:58:10 +0800 Subject: [PATCH] common/config: set rocksdb_cache_size to OPT_U64 OPT_INT is not enough for abundant RAM. Signed-off-by: liuhongtong --- src/common/config_opts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 772fee72f2059..4c0feefa8e5f2 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -892,7 +892,7 @@ OPTION(kinetic_use_ssl, OPT_BOOL, false) // whether to secure kinetic traffic wi OPTION(rocksdb_separate_wal_dir, OPT_BOOL, false) // use $path.wal for wal OPTION(rocksdb_db_paths, OPT_STR, "") // path,size( path,size)* OPTION(rocksdb_log_to_ceph_log, OPT_BOOL, true) // log to ceph log -OPTION(rocksdb_cache_size, OPT_INT, 128*1024*1024) // default rocksdb cache size +OPTION(rocksdb_cache_size, OPT_U64, 128*1024*1024) // default rocksdb cache size OPTION(rocksdb_cache_shard_bits, OPT_INT, 4) // rocksdb block cache shard bits, 4 bit -> 16 shards OPTION(rocksdb_block_size, OPT_INT, 4*1024) // default rocksdb block size OPTION(rocksdb_perf, OPT_BOOL, false) // Enabling this will have 5-10% impact on performance for the stats collection -- 2.39.5