From 14e393444f27c13ee43bc0abe0e25eb9a3ba0554 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 Cherry-pick notes: - Options defined in src/common/options.cc in Pacific vs src/common/options/rgw.yaml.in --- src/common/legacy_config_opts.h | 1 - src/common/options.cc | 10 ------- src/rgw/rgw_quota.cc | 53 ++++----------------------------- src/rgw/rgw_quota.h | 12 +------- 4 files changed, 7 insertions(+), 69 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 476a16cc216..f2610f33a70 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1445,7 +1445,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 96bbf56c1a0..422355d20fa 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6777,16 +6777,6 @@ std::vector