From: Casey Bodley Date: Wed, 26 Feb 2025 21:06:14 +0000 (-0500) Subject: radosgw-admin: lower default thread pool size X-Git-Tag: v19.2.3~255^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d693207987149e485a9d6ed8e200f090adc78776;p=ceph.git radosgw-admin: lower default thread pool size 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 (cherry picked from commit 357f12f074d8fa9a8bb68f67ae17fa9b42938115) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 7bdd0544899ac..efbb9f96478cb 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -3355,7 +3355,12 @@ int main(int argc, const char **argv) exit(0); } - auto cct = rgw_global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, + // alternative defaults for radosgw-admin + map 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);