Skip to content

Commit 4052c51

Browse files
authored
Merge pull request ceph#62018 from cbodley/wip-rgw-admin-threads
radosgw-admin: lower default thread pool size Reviewed-By: Oguzhan Ozmen <[email protected]>
2 parents 697b7be + 357f12f commit 4052c51

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rgw/radosgw-admin/radosgw-admin.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3495,7 +3495,12 @@ int main(int argc, const char **argv)
34953495
exit(0);
34963496
}
34973497

3498-
auto cct = rgw_global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT,
3498+
// alternative defaults for radosgw-admin
3499+
map<std::string,std::string> defaults = {
3500+
{ "rgw_thread_pool_size", "8" },
3501+
};
3502+
3503+
auto cct = rgw_global_init(&defaults, args, CEPH_ENTITY_TYPE_CLIENT,
34993504
CODE_ENVIRONMENT_UTILITY, 0);
35003505
ceph::async::io_context_pool context_pool(cct->_conf->rgw_thread_pool_size);
35013506

0 commit comments

Comments
 (0)