summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlistair Coles <alistairncoles@gmail.com>2022-03-31 16:36:32 +0100
committerAlistair Coles <alistairncoles@gmail.com>2022-05-20 14:40:00 +0100
commitccaf49a00cea1990027eb699bff8f10c664b2c9a (patch)
treec99077694666d01d97513a0572e0a142d7404121 /doc
parent507cf18f961ff03f80b65590024560a9ce121ea2 (diff)
downloadswift-ccaf49a00cea1990027eb699bff8f10c664b2c9a.tar.gz
Add backend rate limiting middleware
This is a fairly blunt tool: ratelimiting is per device and applied independently in each worker, but this at least provides some limit to disk IO on backend servers. GET, HEAD, PUT, POST, DELETE, UPDATE and REPLICATE methods may be rate-limited. Only requests with a path starting '<device>/<partition>', where <partition> can be cast to an integer, will be rate-limited. Other requests, including, for example, recon requests with paths such as 'recon/version', are unconditionally forwarded to the next app in the pipeline. OPTIONS and SSYNC methods are not rate-limited. Note that SSYNC sub-requests are passed directly to the object server app and will not pass though this middleware. Change-Id: I78b59a081698a6bff0d74cbac7525e28f7b5d7c1
Diffstat (limited to 'doc')
-rw-r--r--doc/source/middleware.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/middleware.rst b/doc/source/middleware.rst
index ef282bfa3..ee2e3dc67 100644
--- a/doc/source/middleware.rst
+++ b/doc/source/middleware.rst
@@ -102,6 +102,13 @@ AWS S3 Api
:members:
:show-inheritance:
+Backend Ratelimit
+=================
+
+.. automodule:: swift.common.middleware.backend_ratelimit
+ :members:
+ :show-inheritance:
+
.. _bulk:
Bulk Operations (Delete and Archive Auto Extraction)