summaryrefslogtreecommitdiff
path: root/etc/account-server.conf-sample
diff options
context:
space:
mode:
Diffstat (limited to 'etc/account-server.conf-sample')
-rw-r--r--etc/account-server.conf-sample14
1 files changed, 13 insertions, 1 deletions
diff --git a/etc/account-server.conf-sample b/etc/account-server.conf-sample
index 89c1ea350..485fb45e2 100644
--- a/etc/account-server.conf-sample
+++ b/etc/account-server.conf-sample
@@ -80,7 +80,7 @@ bind_port = 6202
# ionice_priority =
[pipeline:main]
-pipeline = healthcheck recon account-server
+pipeline = healthcheck recon backend_ratelimit account-server
[app:account-server]
use = egg:swift#account
@@ -128,6 +128,18 @@ use = egg:swift#healthcheck
use = egg:swift#recon
# recon_cache_path = /var/cache/swift
+[filter:backend_ratelimit]
+use = egg:swift#backend_ratelimit
+# Set the maximum rate of requests per second per device per worker. Beyond
+# this rate the server will return 529 responses and emit a 'backend.ratelimit'
+# statsd metric without logging. The default value of zero causes no
+# rate-limiting to be applied.
+# requests_per_device_per_second = 0.0
+#
+# Set the number of seconds of unused rate-limiting allowance that can
+# accumulate and be used to allow a subsequent burst of requests.
+# requests_per_device_rate_buffer = 1.0
+
[account-replicator]
# You can override the default log routing for this app here (don't use set!):
# log_name = account-replicator