From: Sage Weil Date: Wed, 19 May 2021 19:23:26 +0000 (-0400) Subject: msg/async: configurable threshold for reaping dead connections X-Git-Tag: v15.2.16~81^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7b27bb9f4286e5673be63c9ddcc1ad594eb944d;p=ceph.git msg/async: configurable threshold for reaping dead connections It is helpful to set this to 1 for tests. Signed-off-by: Sage Weil (cherry picked from commit 8129d6bb953015cc05db458afa6aa9b8f5f62614) Signed-off-by: Gerald Yang --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 1a69f141141..832af68a8ef 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -143,6 +143,7 @@ OPTION(ms_dump_on_send, OPT_BOOL) // hexdump msg to log on send OPTION(ms_dump_corrupt_message_level, OPT_INT) // debug level to hexdump undecodeable messages at OPTION(ms_async_op_threads, OPT_U64) // number of worker processing threads for async messenger created on init OPTION(ms_async_max_op_threads, OPT_U64) // max number of worker processing threads for async messenger +OPTION(ms_async_reap_threshold, OPT_U32) // number of deleted connections before we reap OPTION(ms_async_rdma_device_name, OPT_STR) OPTION(ms_async_rdma_enable_hugepage, OPT_BOOL) OPTION(ms_async_rdma_buffer_size, OPT_INT) diff --git a/src/common/options.cc b/src/common/options.cc index daaeb2d7c95..d0d19ec702a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1135,6 +1135,11 @@ std::vector