]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: set rocksdb_cache_size to OPT_U64 13995/head
authorliuhongtong <hongtong.liu@istuary.com>
Thu, 16 Mar 2017 07:58:10 +0000 (15:58 +0800)
committerliuhongtong <hongtong.liu@istuary.com>
Thu, 16 Mar 2017 07:58:10 +0000 (15:58 +0800)
OPT_INT is not enough for abundant RAM.

Signed-off-by: liuhongtong <hongtong.liu@istuary.com>
src/common/config_opts.h

index 772fee72f2059e15f7bebad5962a0cebc1a13f40..4c0feefa8e5f2e12bad9f8016ca4720cef46762d 100644 (file)
@@ -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