From 78821f17159bb39a99f2cf84e94968a125c00206 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Mon, 27 Apr 2020 19:07:47 -0400 Subject: [PATCH] rgw: nfs: disable gc, lc, quota, and sync threads by default These can be overridden by new options, should a site decide to run a librgw with no radosgw instances. Signed-off-by: Matt Benjamin (cherry picked from commit ccff9f122b94e25f1c6947cbc08a51577ccc6431) --- src/common/legacy_config_opts.h | 5 +++++ src/common/options.cc | 16 ++++++++++++++++ src/rgw/librgw.cc | 24 ++++++++++++++++++++---- 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index b0562247dda99..287326fc35b96 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1276,6 +1276,11 @@ OPTION(rgw_enable_quota_threads, OPT_BOOL) OPTION(rgw_enable_gc_threads, OPT_BOOL) OPTION(rgw_enable_lc_threads, OPT_BOOL) +/* overrides for librgw/nfs */ +OPTION(rgw_nfs_run_gc_threads, OPT_BOOL) +OPTION(rgw_nfs_run_lc_threads, OPT_BOOL) +OPTION(rgw_nfs_run_quota_threads, OPT_BOOL) +OPTION(rgw_nfs_run_sync_thread, OPT_BOOL) OPTION(rgw_data, OPT_STR) OPTION(rgw_enable_apis, OPT_STR) diff --git a/src/common/options.cc b/src/common/options.cc index b4e41834c6a63..a8878bce54501 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5931,6 +5931,22 @@ std::vector