From 600792b713627382a9173db001d4b3aaa1767c30 Mon Sep 17 00:00:00 2001 From: Zulai Wang Date: Sat, 22 May 2021 21:21:10 +0800 Subject: [PATCH] rgw: remove quota soft threshold Remove quota soft threshold, which causes expensive checks for sharded buckets Fixes: 14eabd4aa7b8a2e2c0c43fe7f877ed2171277526 Signed-off-by: Zulai Wang (cherry picked from commit 32a39705765af0f87bec9101e5d337b797e05fea) Conflicts: src/common/options/rgw.yaml.in src/rgw/rgw_quota.cc Cherry-pick notes: - Options defined in src/common/options.cc in Octopus vs src/common/options/rgw.yaml.in - RGWQuotaCache::get_stats does not take optional_yeild or DoutPrefixProvider arguments in Octopus --- src/common/legacy_config_opts.h | 1 - src/common/options.cc | 10 ------- src/rgw/rgw_quota.cc | 51 ++++----------------------------- src/rgw/rgw_quota.h | 12 +------- 4 files changed, 6 insertions(+), 68 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index fcba93ce41f4..1a69f141141a 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1461,7 +1461,6 @@ OPTION(rgw_data_log_num_shards, OPT_INT) // number of objects to keep data chang OPTION(rgw_data_log_obj_prefix, OPT_STR) // OPTION(rgw_bucket_quota_ttl, OPT_INT) // time for cached bucket stats to be cached within rgw instance -OPTION(rgw_bucket_quota_soft_threshold, OPT_DOUBLE) // threshold from which we don't rely on cached info for quota decisions OPTION(rgw_bucket_quota_cache_size, OPT_INT) // number of entries in bucket quota cache OPTION(rgw_bucket_default_quota_max_objects, OPT_INT) // number of objects allowed OPTION(rgw_bucket_default_quota_max_size, OPT_LONGLONG) // Max size of object in bytes diff --git a/src/common/options.cc b/src/common/options.cc index 85f4203be368..daaeb2d7c955 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6510,16 +6510,6 @@ std::vector