]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/filestore: Change default filestore_merge_threshold to -1 22813/head
authorDouglas Fuller <dfuller@redhat.com>
Thu, 28 Jun 2018 14:26:25 +0000 (10:26 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 3 Jul 2018 10:47:19 +0000 (12:47 +0200)
Performance evaluations of medium to large size Ceph clusters have
demonstrated negligible performance impact from unnecessarily deep
directory hierarchies but significant performance impact from filestore
split and merge activity. Disable merges by default.

Fixes: http://tracker.ceph.com/issues/24686
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
(cherry picked from commit 75f55f2dfc92a89ec9d821e00effad75839008c9)

doc/rados/configuration/filestore-config-ref.rst
qa/standalone/mon/osd-pool-create.sh
src/common/options.cc
src/sample.ceph.conf

index 2a5e40eb5080e960ac8f70adc9a909121c2d97ff..bb8926d9849117bb869547ff853ff57681820231 100644 (file)
@@ -297,7 +297,7 @@ Misc
               NOTE: A negative value means to disable subdir merging
 :Type: Integer
 :Required: No
-:Default: ``10``
+:Default: ``-10``
 
 
 ``filestore split multiple``
index e078547ab3f28752d111cbd662086f60a207b262..e41bc6494d980fff7f0aee02e33ceb4ed648e639 100755 (executable)
@@ -213,7 +213,6 @@ function TEST_pool_create_rep_expected_num_objects() {
     setup $dir || return 1
 
     # disable pg dir merge
-    CEPH_ARGS+="--filestore-merge-threshold=-10 "
     export CEPH_ARGS
     run_mon $dir a || return 1
     run_mgr $dir x || return 1
index 9b9260b426752df63496c8a082b86213e7dcb362..3c0023cf3f902a6f18e74d4c4f7f39ae1e189c51 100644 (file)
@@ -4554,7 +4554,7 @@ std::vector<Option> get_global_options() {
     .set_description(""),
 
     Option("filestore_merge_threshold", Option::TYPE_INT, Option::LEVEL_DEV)
-    .set_default(10)
+    .set_default(-10)
     .set_description(""),
 
     Option("filestore_split_multiple", Option::TYPE_INT, Option::LEVEL_DEV)
index 1a87516a4f53faae4d44847c49aadd952b122bd5..589243e3853731bdf914a376bb86e7569cf1f990 100644 (file)
     # Type: Integer
     # Required: No
     # Default:  10
-    ;filestore merge threshold    = 10
+    ;filestore merge threshold    = -10
 
     # filestore_split_multiple * abs(filestore_merge_threshold) * 16 is the maximum number of files in a subdirectory before splitting into child directories.
     # Type: Integer