aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMicah Elizabeth Scott <beth@torproject.org>2023-02-27 18:39:43 -0800
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:38:28 -0700
commitf3b98116b6f331ec9b849867dff8dec957ce7edc (patch)
treee1c34bd7db5d9c3e55e98fc2c971bcf6b1696690 /doc
parent20d7c8ce14eccccf97ad05de5c5281360fefd3bc (diff)
downloadtor-f3b98116b6f331ec9b849867dff8dec957ce7edc.tar.gz
tor-f3b98116b6f331ec9b849867dff8dec957ce7edc.zip
hs_pow: Rate limited dequeue
This adds a token bucket ratelimiter on the dequeue side of hs_pow's priority queue. It adds config options and docs for those options. (HiddenServicePoWQueueRate/Burst) I'm testing this as a way to limit the overhead of circuit creation when we're experiencing a flood of rendezvous requests. Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/man/tor.1.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/man/tor.1.txt b/doc/man/tor.1.txt
index a62c7c7d82..2ac6a8471c 100644
--- a/doc/man/tor.1.txt
+++ b/doc/man/tor.1.txt
@@ -3099,6 +3099,19 @@ The following options are per onion service:
entirely when the service is not overloaded.
(Default: 0)
+[[HiddenServicePoWQueueRate]] **HiddenServicePoWQueueRate** __NUM__::
+
+ The sustained rate of rendezvous requests to dispatch per second from
+ the priority queue. Has no effect when proof-of-work is disabled.
+ If this is set to 0 there's no explicit limit and we will process
+ requests as quickly as possible.
+ (Default: 250)
+
+[[HiddenServicePoWQueueBurst]] **HiddenServicePoWQueueBurst** __NUM__::
+
+ The maximum burst size for rendezvous requests handled from the
+ priority queue at once. (Default: 2500)
+
== DIRECTORY AUTHORITY SERVER OPTIONS