From: Guang Yang Date: Wed, 4 Feb 2015 03:21:52 +0000 (+0000) Subject: rgw - make starting quota/gc threads configurable X-Git-Tag: v9.0.0~199^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a88712aeb4e7cd4208b9a707aa3bd4d03340c3ff;p=ceph.git rgw - make starting quota/gc threads configurable Fixes: 11047 Backport: hammer Signed-off-by: Guang Yang --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 6037640b7ec6..cb7b3d93318c 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -905,6 +905,12 @@ OPTION(rgw_override_bucket_index_max_shards, OPT_U32, 0) */ OPTION(rgw_bucket_index_max_aio, OPT_U32, 8) +/** + * whether or not the quota/gc threads should be started + */ +OPTION(rgw_enable_quota_threads, OPT_BOOL, true) +OPTION(rgw_enable_gc_threads, OPT_BOOL, true) + OPTION(rgw_data, OPT_STR, "/var/lib/ceph/radosgw/$cluster-$id") OPTION(rgw_enable_apis, OPT_STR, "s3, swift, swift_auth, admin") OPTION(rgw_cache_enabled, OPT_BOOL, true) // rgw cache enabled diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index 92ae50244593..3b93e8993d99 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -1042,7 +1042,8 @@ int main(int argc, const char **argv) FCGX_Init(); int r = 0; - RGWRados *store = RGWStoreManager::get_storage(g_ceph_context, true, true); + RGWRados *store = RGWStoreManager::get_storage(g_ceph_context, + g_conf->rgw_enable_gc_threads, g_conf->rgw_enable_quota_threads); if (!store) { derr << "Couldn't init storage provider (RADOS)" << dendl; r = EIO;