]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rocksdb: increase default cache size to 512 MB
authorSage Weil <sage@redhat.com>
Mon, 24 Sep 2018 14:21:20 +0000 (09:21 -0500)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Nov 2018 10:02:13 +0000 (11:02 +0100)
For filestore OSDs, this is probably a good idea anyway, and is generally
not going to be hugely impactful on the memory footprint (where users
have been told to provide 1 GB RAM per 1 TB storage for a long time now).

For bluestore OSDs, this value is meaningless as we're autotuning this
anyway.

For mons, this is a more reasonable default.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cbfc3ee1921f4780be6d4071e441818b1390101c)

Conflicts:
src/common/options.cc
- trivial resolution

src/common/options.cc

index 199bc301e8fd5d8362e31cea985d6d8f56f9c977..50139cc329d4931b4e77d1a06fdcf45fd0ac2e5a 100644 (file)
@@ -3423,7 +3423,7 @@ std::vector<Option> get_global_options() {
     .set_description(""),
 
     Option("rocksdb_cache_size", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
-    .set_default(128_M)
+    .set_default(512_M)
     .set_description(""),
 
     Option("rocksdb_cache_row_ratio", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)