New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: remove quota soft threshold #41495
Conversation
src/rgw/rgw_quota.cc
Outdated
| @@ -196,7 +165,9 @@ void RGWQuotaCache<T>::set_stats(const rgw_user& user, const rgw_bucket& bucket, | |||
| } | |||
|
|
|||
| template<class T> | |||
| int RGWQuotaCache<T>::get_stats(const rgw_user& user, const rgw_bucket& bucket, RGWStorageStats& stats, RGWQuotaInfo& quota, optional_yield y, const DoutPrefixProvider *dpp) { | |||
| int | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you added new line by mistake, other than that LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reformatted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please squash the commits into a single commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Remove quota soft threshold, which causes expensive checks for sharded buckets Fixes: 14eabd4 Signed-off-by: Zulai Wang <wangzl31@outlook.com>
dddec57
to
32a3970
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
According to this thread in dev@ceph.io, the quota soft threshold is not reasonable anymore after dynamic resharding was introduced, which causes expensive checks for sharded buckets. This pull request reverts the 14eabd4 commit to remove the quota soft threshold.
Fixes: 14eabd4
https://tracker.ceph.com/issues/50975
Signed-off-by: Zulai Wang wangzl31@outlook.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox