From 6363745af7aa079a03056018c6e0e9d2491cd4ef Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 11 May 2018 06:03:12 +0000 Subject: [PATCH] config: distinguish ops with bytes for throttling Reported-by: Xin Yuan Signed-off-by: Li Wang --- src/common/legacy_config_opts.h | 10 ++++++++++ src/common/options.cc | 16 ++++++++++++++++ src/os/filestore/FileStore.cc | 16 ++++++++++++---- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 69fbc51c193..5de9fbb7513 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1182,6 +1182,16 @@ OPTION(filestore_queue_max_delay_multiple, OPT_DOUBLE) /// Filestore high delay multiple. Defaults to 0 (disabled) OPTION(filestore_queue_high_delay_multiple, OPT_DOUBLE) +/// Filestore max delay multiple bytes. Defaults to 0 (disabled) +OPTION(filestore_queue_max_delay_multiple_bytes, OPT_DOUBLE) +/// Filestore high delay multiple bytes. Defaults to 0 (disabled) +OPTION(filestore_queue_high_delay_multiple_bytes, OPT_DOUBLE) + +/// Filestore max delay multiple ops. Defaults to 0 (disabled) +OPTION(filestore_queue_max_delay_multiple_ops, OPT_DOUBLE) +/// Filestore high delay multiple ops. Defaults to 0 (disabled) +OPTION(filestore_queue_high_delay_multiple_ops, OPT_DOUBLE) + /// Use above to inject delays intended to keep the op queue between low and high OPTION(filestore_queue_low_threshhold, OPT_DOUBLE) OPTION(filestore_queue_high_threshhold, OPT_DOUBLE) diff --git a/src/common/options.cc b/src/common/options.cc index e5b3d2de839..3038f9cf374 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4533,6 +4533,22 @@ std::vector