the thread pool controlled by rgw_thread_pool_size was added to
radosgw-admin for squid, but the default value of 512 wastes a lot of
time starting/stopping threads. change the default value to 8 for
radosgw-admin commands only
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
357f12f074d8fa9a8bb68f67ae17fa9b42938115)
exit(0);
}
- auto cct = rgw_global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT,
+ // alternative defaults for radosgw-admin
+ map<std::string,std::string> defaults = {
+ { "rgw_thread_pool_size", "8" },
+ };
+
+ auto cct = rgw_global_init(&defaults, args, CEPH_ENTITY_TYPE_CLIENT,
CODE_ENVIRONMENT_UTILITY, 0);
ceph::async::io_context_pool context_pool(cct->_conf->rgw_thread_pool_size);