From: Zhang Shaowen Date: Fri, 8 Dec 2017 01:05:30 +0000 (+0800) Subject: rgw: add curl_low_speed_limit and curl_low_speed_time config to avoid X-Git-Tag: v13.2.2~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f646c568849584f1b728a9ced06754385c6ea0e;p=ceph.git rgw: add curl_low_speed_limit and curl_low_speed_time config to avoid the thread hangs in data sync. Signed-off-by: Zhang Shaowen rgw: mitigate NIC problems like X710 transmit queue hang Continuation of #19282 - change the default speed limit to 1KBps - fix options description spacing Signed-off-by: Mark Kogan (cherry picked from commit f4171225fa479b19c3ec5ff51943c84fd53f85d1) --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index ee642b1ca9eb..1028d8c9c8da 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1421,6 +1421,8 @@ OPTION(rgw_md_log_max_shards, OPT_INT) // max shards for metadata log OPTION(rgw_num_zone_opstate_shards, OPT_INT) // max shards for keeping inter-region copy progress info OPTION(rgw_opstate_ratelimit_sec, OPT_INT) // min time between opstate updates on a single upload (0 for disabling ratelimit) 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 OPTION(rgw_copy_obj_progress, OPT_BOOL) // should dump progress during long copy operations? OPTION(rgw_copy_obj_progress_every_bytes, OPT_INT) // min bytes between copy progress output OPTION(rgw_obj_tombstone_cache_size, OPT_INT) // how many objects in tombstone cache, which is used in multi-zone sync to keep diff --git a/src/common/options.cc b/src/common/options.cc index 35fade3fd636..2bcd77431263 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5724,6 +5724,20 @@ std::vector