From: Matt Benjamin Date: Mon, 27 Apr 2020 23:07:47 +0000 (-0400) Subject: rgw: nfs: disable gc, lc, quota, and sync threads by default X-Git-Tag: v15.2.5~56^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78821f17159bb39a99f2cf84e94968a125c00206;p=ceph.git 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) --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index b0562247dda..287326fc35b 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 b4e41834c6a..a8878bce545 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5931,6 +5931,22 @@ std::vector