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: v16.1.0~153^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38680%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 --- diff --git a/PendingReleaseNotes b/PendingReleaseNotes index af1c10f1843f..4d4513e99b38 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -1,5 +1,8 @@ >=16.0.0 -------- +* New bluestore_rocksdb_options_annex config parameter. Complements + bluestore_rocksdb_options and allows setting rocksdb options without repeating + the existing defaults. * $pid expansion in config paths like `admin_socket` will now properly expand to the daemon pid for commands like `ceph-mds` or `ceph-osd`. Previously only `ceph-fuse`/`rbd-nbd` expanded `$pid` with the actual daemon pid. diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 162b324fdaa8..08c26249f9ac 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -999,6 +999,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 57901687e77f..b268787ca4c2 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4515,7 +4515,11 @@ std::vector