From d87cb07c8e1e4d4717cfcf7bf3d5b7e1cd124bf3 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Fri, 16 Feb 2018 21:53:12 +0300 Subject: [PATCH] os/bluestore: avoid frequent allocator dump on bluefs rebalance failure Signed-off-by: Igor Fedotov --- src/common/legacy_config_opts.h | 3 +++ src/common/options.cc | 5 +++++ src/os/bluestore/BlueStore.cc | 20 ++++++++++++++++---- src/os/bluestore/BlueStore.h | 2 ++ 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 298721ef83bde..77828795fe6db 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -962,6 +962,9 @@ OPTION(bluestore_bluefs_max_ratio, OPT_FLOAT) // max fs free / total free OPTION(bluestore_bluefs_gift_ratio, OPT_FLOAT) // how much to add at a time OPTION(bluestore_bluefs_reclaim_ratio, OPT_FLOAT) // how much to reclaim at a time OPTION(bluestore_bluefs_balance_interval, OPT_FLOAT) // how often (sec) to balance free space between bluefs and bluestore +// how often (sec) to dump allocation failure happened during bluefs rebalance +OPTION(bluestore_bluefs_balance_failure_dump_interval, OPT_FLOAT) + // If you want to use spdk driver, you need to specify NVMe serial number here // with "spdk:" prefix. // Users can use 'lspci -vvv -d 8086:0953 | grep "Device Serial Number"' to diff --git a/src/common/options.cc b/src/common/options.cc index 628fc57269f6b..889fcb97032cd 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3481,6 +3481,11 @@ std::vector