Repository navigation
rgw: rate limit for LIST and DELETE ops - #64762
Conversation
f8b795b to
884c83f
Compare
884c83f to
16f187b
Compare
|
jenkins test make check |
mattbenjamin
left a comment
There was a problem hiding this comment.
this seems valid to me, within the framework we have set up for the read and write op limits
|
@mkogan1 independent of this change, do you think it would be viable to make the rate limit accumulation interval configurable? |
|
any suggestion for users that already have rate limits configured how they want them? it looks like this would stop applying rate limits for their list/delete ops. do we just add a release note telling users to deal with it? |
|
@cbodley so before this change, how are list and delete ops being rate limited? |
my understanding is that listings are treated as read ops, and deletes as write ops |
16f187b to
60c61f2
Compare
71693c4 to
a0d4fe9
Compare
Config Diff Tool Output+ added: rgw_ratelimit_accumulation_interval_seconds (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
a0d4fe9 to
705d5b4
Compare
There was a problem hiding this comment.
@mattbenjamin re:
@mkogan1 independent of this change, do you think it would be viable to make the rate limit accumulation interval configurable?
added a conf: rgw_ratelimit_accumulation_interval_seconds
@cbodley @mattbenjamin was also considering it, there are several ways to go about it ... |
705d5b4 to
66c48db
Compare
Interesting, thinking about it ... the CU that asked for the LIST rate-limiter performs swarms of list operations like those: their workload checks for the existence of a checkpoint flag object ( |
in this case you would need to rate limit by the number of objects that you had to go through, not the number of objects you returned in the result. |
|
/config check ok |
cf03b58 to
a57d649
Compare
yep, was trying to think where it would be ... thinking myb CLS and not RGW |
70dba7c to
e28ea28
Compare
will this be done in followup work? |
867825a to
885254e
Compare
|
^^^ added handling for multisite tracker issue: |
885254e to
b9ba007
Compare
|
jenkins test make check arm64 |
d08bb2c to
cf68be8
Compare
Add rate limiting specific to LIST ops, similar to the current rate-limiting (https://docs.ceph.com/en/latest/radosgw/admin/#rate-limit-management) Example usage: ``` ./bin/radosgw-admin ratelimit set --ratelimit-scope=user --uid=<UID> --max_list_ops=2 ./bin/radosgw-admin ratelimit set --ratelimit-scope=user --uid=<UID> --max_delete_ops=2 ./bin/radosgw-admin ratelimit enable --ratelimit-scope=user --uid=<UID> ./bin/radosgw-admin ratelimit get --ratelimit-scope=user --uid=<UID> { "user_ratelimit": { "max_read_ops": 0, "max_write_ops": 0, "max_list_ops": 2, "max_delete_ops": 2, "max_read_bytes": 0, "max_write_bytes": 0, "enabled": true } } pkill -9 radosgw ./bin/radosgw -c ./ceph.conf ... aws --endpoint-url 'http://0:8000' s3 mb s3://bkt aws --endpoint-url 'http://0:8000' s3 cp ./ceph.conf s3://bkt aws --endpoint-url http://0:8000 s3api list-objects-v2 --bucket bkt --prefix 'ceph.conf' --delimiter '/' { "Contents": [ { "Key": "ceph.conf", "LastModified": "2025-07-30T13:59:38+00:00", "ETag": "\"13d11d431ae290134562c019d9e40c0e\"", "Size": 32346, "StorageClass": "STANDARD" } ], "RequestCharged": null } aws --endpoint-url http://0:8000 s3api list-objects-v2 --bucket bkt --prefix 'ceph.conf' --delimiter '/' { "Contents": [ { "Key": "ceph.conf", "LastModified": "2025-07-30T13:59:38+00:00", "ETag": "\"13d11d431ae290134562c019d9e40c0e\"", "Size": 32346, "StorageClass": "STANDARD" } ], "RequestCharged": null } aws --endpoint-url http://0:8000 s3api list-objects-v2 --bucket bkt --prefix 'ceph.conf' --delimiter '/' argument of type 'NoneType' is not iterable tail -F ./out/radosgw.8000.log | grep beast ... beast: 0x7fffbbe09780: [30/Jul/2025:15:44:50.359 +0000] " GET /bkt?list-type=2&delimiter=%2F&prefix=ceph.conf&encoding-type=url HTTP/1.1" 200 535 - "aws-cli/2.15.31 Python/3.9.21 Linux/5.14.0-570.28.1.el9_6.x86_64 source/x86_64.rhel.9 prompt/off command/s3api.list-objects-v2" - latency=0.000999995s beast: 0x7fffbbe09780: [30/Jul/2025:15:44:53.904 +0000] " GET /bkt?list-type=2&delimiter=%2F&prefix=ceph.conf&encoding-type=url HTTP/1.1" 200 535 - "aws-cli/2.15.31 Python/3.9.21 Linux/5.14.0-570.28.1.el9_6.x86_64 source/x86_64.rhel.9 prompt/off command/s3api.list-objects-v2" - latency=0.000999995s vvv beast: 0x7fffbbe09780: [30/Jul/2025:15:44:58.192 +0000] " GET /bkt?list-type=2&delimiter=%2F&prefix=ceph.conf&encoding-type=url HTTP/1.1" 503 228 - "aws-cli/2.15.31 Python/3.9.21 Linux/5.14.0-570.28.1.el9_6.x86_64 source/x86_64.rhel.9 prompt/off command/s3api.list-objects-v2" - latency=0.000000000s beast: 0x7fffbbe09780: [30/Jul/2025:15:44:58.798 +0000] " GET /bkt?list-type=2&delimiter=%2F&prefix=ceph.conf&encoding-type=url HTTP/1.1" 503 228 - "aws-cli/2.15.31 Python/3.9.21 Linux/5.14.0-570.28.1.el9_6.x86_64 source/x86_64.rhel.9 prompt/off command/s3api.list-objects-v2" - latency=0.000999994s beast: 0x7fffbbe09780: [30/Jul/2025:15:44:59.807 +0000] " GET /bkt?list-type=2&delimiter=%2F&prefix=ceph.conf&encoding-type=url HTTP/1.1" 503 228 - "aws-cli/2.15.31 Python/3.9.21 Linux/5.14.0-570.28.1.el9_6.x86_64 source/x86_64.rhel.9 prompt/off command/s3api.list-objects-v2" - latency=0.000000000s s3cmd put ./ceph.conf s3://bkt/1 s3cmd put ./ceph.conf s3://bkt/2 s3cmd put ./ceph.conf s3://bkt/3 s3cmd rm s3://bkt/1 s3cmd rm s3://bkt/2 s3cmd rm s3://bkt/3 delete: 's3://bkt/1' delete: 's3://bkt/2' WARNING: Retrying failed request: /3 (503 (SlowDown)) WARNING: Waiting 3 sec... WARNING: Retrying failed request: /3 (503 (SlowDown)) ^^^ ``` Fixes: https://tracker.ceph.com/issues/72894 Signed-off-by: Mark Kogan <[email protected]> Update PendingReleaseNotes Co-authored-by: Yuval Lifshitz <[email protected]> Signed-off-by: Mark Kogan <[email protected]> Update PendingReleaseNotes Co-authored-by: Yuval Lifshitz <[email protected]> Signed-off-by: Mark Kogan <[email protected]>
cf68be8 to
dae572d
Compare
|
jenkins test api |
|
updated teuthology run following all the fixes: |
…change (#25) Backport-Id: 01a11a76-84c1-7371-840f-b82c5fbf1a72 Backport-PR: #25 Upstream-PRs: ceph#64762, ceph#66509, ceph#68210



Add rate limiting specific to LIST ops,
similar to the current rate-limiting
(https://docs.ceph.com/en/latest/radosgw/admin/#rate-limit-management)
Example usage:
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition