From 83fee0e55c5bbc3085fa390dee77c148b51374b4 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Tue, 22 Dec 2020 00:01:52 +0300 Subject: [PATCH] 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 --- PendingReleaseNotes | 4 ++++ src/common/legacy_config_opts.h | 1 + src/common/options.cc | 6 +++++- src/os/bluestore/BlueStore.cc | 17 +++++++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) 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