From: David Zafman Date: Tue, 9 Oct 2018 20:24:38 +0000 (-0700) Subject: osd: New configuration option osd_delete_sleep X-Git-Tag: v12.2.11~138^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e6d2a1b29d3f3679b423a772172ba632fdb7395;p=ceph.git osd: New configuration option osd_delete_sleep Causes the remove_wq thread to sleep the specified number of seconds between transactions. Fixes: http://tracker.ceph.com/issues/36321 Signed-off-by: David Zafman This backport is not cherry-picked from master since the remove threadpool was folded into the main op queue post-luminous, so the code is almost entirely different. --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 8232fdc3d78..25780b32b3e 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -848,6 +848,7 @@ OPTION(osd_op_history_duration, OPT_U32) // Oldest completed op to track OPTION(osd_op_history_slow_op_size, OPT_U32) // Max number of slow ops to track OPTION(osd_op_history_slow_op_threshold, OPT_DOUBLE) // track the op if over this threshold OPTION(osd_target_transaction_size, OPT_INT) // to adjust various transactions that batch smaller items +OPTION(osd_delete_sleep, OPT_FLOAT) // seconds to sleep between removal transactions OPTION(osd_failsafe_full_ratio, OPT_FLOAT) // what % full makes an OSD "full" (failsafe) OPTION(osd_fast_fail_on_connection_refused, OPT_BOOL) // immediately mark OSDs as down once they refuse to accept connections diff --git a/src/common/options.cc b/src/common/options.cc index 970a12f3fe6..966cd1a4a18 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2846,6 +2846,10 @@ std::vector