diff options
author | zdover23 <zac.dover@proton.me> | 2024-01-23 03:31:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 03:31:46 +0100 |
commit | 27a0fc52f12eb2e08ecbd6afbe7b145899f1a8ab (patch) | |
tree | 4e842535ed1055284477dda4c019fae8de15467b | |
parent | Merge pull request #55223 from athanatos/sjust/wip-64055 (diff) | |
parent | doc/radosgw: edit "read/write global rate limit" admin.rst (diff) | |
download | ceph-27a0fc52f12eb2e08ecbd6afbe7b145899f1a8ab.tar.xz ceph-27a0fc52f12eb2e08ecbd6afbe7b145899f1a8ab.zip |
Merge pull request #55269 from zdover23/wip-doc-2024-01-23-radosgw-admin-read-write-global-rate-limit-config
doc/radosgw: edit "read/write global rate limit" admin.rst
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
-rw-r--r-- | doc/radosgw/admin.rst | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/doc/radosgw/admin.rst b/doc/radosgw/admin.rst index b011fa26510..8e846874a5f 100644 --- a/doc/radosgw/admin.rst +++ b/doc/radosgw/admin.rst @@ -783,35 +783,46 @@ An enabled bucket rate limit can be disabled by running a command of the followi radosgw-admin ratelimit disable --ratelimit-scope=bucket --uid=mybucket -Reading / Writing Global Rate Limit Configuration -------------------------------------------------- +Reading and Writing Global Rate Limit Configuration +--------------------------------------------------- -You can read and write global rate limit settings in the period configuration. To -view the global rate limit settings:: +You can read and write global rate limit settings in the period's configuration. +To view the global rate limit settings, run the following command: - radosgw-admin global ratelimit get +.. prompt:: bash + + radosgw-admin global ratelimit get The global rate limit settings can be manipulated with the ``global ratelimit`` -counterparts of the ``ratelimit set``, ``ratelimit enable``, and ``ratelimit disable`` -commands. Per user and per bucket ratelimit configuration is overriding the global configuration:: +counterparts of the ``ratelimit set``, ``ratelimit enable``, and ``ratelimit +disable`` commands. Per-user and per-bucket ratelimit configurations override +the global configuration: - radosgw-admin global ratelimit set --ratelimit-scope bucket --max-read-ops=1024 - radosgw-admin global ratelimit enable --ratelimit-scope bucket +.. prompt:: bash -The global rate limit can configure rate limit scope for all authenticated users:: + radosgw-admin global ratelimit set --ratelimit-scope bucket --max-read-ops=1024 + radosgw-admin global ratelimit enable --ratelimit-scope bucket - radosgw-admin global ratelimit set --ratelimit-scope user --max-read-ops=1024 - radosgw-admin global ratelimit enable --ratelimit-scope user +The global rate limit can be used to configure the scope of the rate limit for +all authenticated users: + +.. prompt:: bash -The global rate limit can configure rate limit scope for all unauthenticated users:: + radosgw-admin global ratelimit set --ratelimit-scope user --max-read-ops=1024 + radosgw-admin global ratelimit enable --ratelimit-scope user + +The global rate limit can be used to configure the scope of the rate limit for +all unauthenticated users: + +.. prompt:: bash - radosgw-admin global ratelimit set --ratelimit-scope=anonymous --max-read-ops=1024 - radosgw-admin global ratelimit enable --ratelimit-scope=anonymous + radosgw-admin global ratelimit set --ratelimit-scope=anonymous --max-read-ops=1024 + radosgw-admin global ratelimit enable --ratelimit-scope=anonymous -.. note:: In a multisite configuration, where there is a realm and period - present, changes to the global rate limit must be committed using ``period - update --commit``. If there is no period present, the rados gateway(s) must - be restarted for the changes to take effect. +.. note:: In a multisite configuration where a realm and a period are present, + any changes to the global rate limit must be committed using ``period update + --commit``. If no period is present, the rados gateway(s) must be restarted + for the changes to take effect. Usage ===== |