From b0387a63c0d2a6aa6b73080d12c64114d7c518b7 Mon Sep 17 00:00:00 2001 From: Yang Honggang Date: Wed, 2 Dec 2020 10:19:17 +0800 Subject: [PATCH] rgw/rgw_http_client.cc: Introduce a new configuration item - rgw_curl_buffersize Config this item to a large value will aggressively enhance large object sync performance. So raise the default value of rgw_curl_buffersize from 16KB to 512KB, which is also the buffer size used for compression in #21479 Signed-off-by: Yang Honggang Signed-off-by: Ruan Zitao --- src/common/legacy_config_opts.h | 1 + src/common/options.cc | 8 ++++++++ src/rgw/rgw_http_client.cc | 1 + 3 files changed, 10 insertions(+) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index dd5b3e0af2f0a..0be601e8ec144 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1426,6 +1426,7 @@ OPTION(rgw_relaxed_s3_bucket_names, OPT_BOOL) // enable relaxed bucket name rule OPTION(rgw_defer_to_bucket_acls, OPT_STR) // if the user has bucket perms) OPTION(rgw_list_buckets_max_chunk, OPT_INT) // max buckets to retrieve in a single op when listing user buckets OPTION(rgw_md_log_max_shards, OPT_INT) // max shards for metadata log +OPTION(rgw_curl_buffersize, OPT_INT) // set preferred receive buffer size for curl calls OPTION(rgw_curl_wait_timeout_ms, OPT_INT) // timeout for certain curl calls OPTION(rgw_curl_low_speed_limit, OPT_INT) // low speed limit for certain curl calls OPTION(rgw_curl_low_speed_time, OPT_INT) // low speed time for certain curl calls diff --git a/src/common/options.cc b/src/common/options.cc index 7de01868ccfdf..396b66df4851a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6495,6 +6495,14 @@ std::vector