Project

General

Profile

Actions

Bug #54607

open

Rate limits not working on tenanted users

Added by Tejas C about 2 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
low-hanging-fruit ratelimit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have a tenanted users having rate limits set

/]# radosgw-admin ratelimit get --ratelimit-scope user --uid ten1/user1 {
"user_ratelimit": {
"max_read_ops": 5,
"max_write_ops": 5,
"max_read_bytes": 102400,
"max_write_bytes": 10240,
"enabled": true
}
}

  1. /usr/local/bin/s3cmd put 110m s3://ten1/110
    upload: '110m' -> 's3://ten1/110' [part 1 of 8, 15MB] [1 of 1]
    15728640 of 15728640 100% in 0s 30.75 MB/s done

]# /usr/local/bin/s3cmd put 110m s3://ten1/111
upload: '110m' -> 's3://ten1/111' [part 1 of 8, 15MB] [1 of 1]
15728640 of 15728640 100% in 0s 44.45 MB/s done
It is allowing consecutive 110M writes

Same with get , consecutive 110M read operations are being allowed.

  1. /usr/local/bin/s3cmd get s3://ten1/110 --force
    download: 's3://ten1/110' -> './110' [1 of 1]
    115343360 of 115343360 100% in 0s 232.92 MB/s done

]# /usr/local/bin/s3cmd get s3://ten1/110 --force
download: 's3://ten1/110' -> './110' [1 of 1]
115343360 of 115343360 100% in 0s 263.33 MB/s done

Actions

Also available in: Atom PDF