From: Igor Fedotov Date: Mon, 21 Dec 2020 21:01:52 +0000 (+0300) Subject: os/bluestore: introduce bluestore_rocksdb_options_annex config parameter. X-Git-Tag: v15.2.10~26^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39325%2Fhead;p=ceph.git os/bluestore: introduce bluestore_rocksdb_options_annex config parameter. This simplifies modifying a subset of rocksdb settings since it eliminates the need to re-provide bluestore's rocksdb settings. Signed-off-by: Igor Fedotov (cherry picked from commit 711505e8f9effbf4f0ada3bfe8d25dbc7e86861e) Conflicts: (trivial) PendingReleaseNotes (trivial) src/common/options.cc (trivial) src/os/bluestore/BlueStore.cc --- diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 508bc63cafd6..0cd6c40da3f1 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -6,6 +6,10 @@ This improves out of the box performance of Ceph by allowing more PGs to be created for a given pool. +* New bluestore_rocksdb_options_annex config parameter. Complements + bluestore_rocksdb_options and allows setting rocksdb options without repeating + the existing defaults. + 15.2.8 ------ * $pid expansion in config paths like `admin_socket` will now properly expand diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 68364bbb9626..3abaf52bb9e5 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1014,6 +1014,7 @@ OPTION(bluestore_bitmapallocator_span_size, OPT_INT) // must be power of 2 align OPTION(bluestore_max_deferred_txc, OPT_U64) OPTION(bluestore_max_defer_interval, OPT_U64) OPTION(bluestore_rocksdb_options, OPT_STR) +OPTION(bluestore_rocksdb_options_annex, OPT_STR) OPTION(bluestore_fsck_on_mount, OPT_BOOL) OPTION(bluestore_fsck_on_mount_deep, OPT_BOOL) OPTION(bluestore_fsck_quick_fix_on_mount, OPT_BOOL) diff --git a/src/common/options.cc b/src/common/options.cc index 693ed4c5f893..165aa6f6453d 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4434,7 +4434,11 @@ std::vector