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)
.set_long_description("use fast S3 attrs from bucket index (assumes NFS "
"mounts are immutable)"),
+ Option("rgw_nfs_run_gc_threads", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ .set_default(false)
+ .set_description("run GC threads in librgw (default off)"),
+
+ Option("rgw_nfs_run_lc_threads", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ .set_default(false)
+ .set_description("run lifecycle threads in librgw (default off)"),
+
+ Option("rgw_nfs_run_quota_threads", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ .set_default(false)
+ .set_description("run quota threads in librgw (default off)"),
+
+ Option("rgw_nfs_run_sync_thread", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ .set_default(false)
+ .set_description("run sync thread in librgw (default off)"),
+
Option("rgw_rados_pool_autoscale_bias", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)
.set_default(4.0)
.set_min_max(0.01, 100000.0)
rgw::curl::setup_curl(boost::none);
rgw_http_client_init(g_ceph_context);
+ auto run_gc =
+ g_conf()->rgw_enable_gc_threads &&
+ g_conf()->rgw_nfs_run_gc_threads;
+
+ auto run_lc =
+ g_conf()->rgw_enable_lc_threads &&
+ g_conf()->rgw_nfs_run_lc_threads;
+
+ auto run_quota =
+ g_conf()->rgw_enable_quota_threads &&
+ g_conf()->rgw_nfs_run_quota_threads;
+
+ auto run_sync =
+ g_conf()->rgw_run_sync_thread &&
+ g_conf()->rgw_nfs_run_sync_thread;
+
store = RGWStoreManager::get_storage(g_ceph_context,
- g_conf()->rgw_enable_gc_threads,
- g_conf()->rgw_enable_lc_threads,
- g_conf()->rgw_enable_quota_threads,
- g_conf()->rgw_run_sync_thread,
+ run_gc,
+ run_lc,
+ run_quota,
+ run_sync,
g_conf().get_val<bool>("rgw_dynamic_resharding"));
if (!store) {