From 70739d32cc3894ce55f889c2e2fdb09d41e33df9 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 10 Feb 2023 20:16:01 +0000 Subject: [performance] remove throttling timers (#1466) * remove throttling timers, support setting retry-after, use retry-after in transport * remove unused variables * add throttling-retry-after to cmd flags * update envparsing to include new throttling-retry-after * update example config to include retry-after documentation * also support retry-after formatted as date-time, ensure max backoff time --------- Signed-off-by: kim --- example/config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example') diff --git a/example/config.yaml b/example/config.yaml index b411da4db..3b84feb70 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -760,3 +760,10 @@ advanced-rate-limit-requests: 300 # Examples: [8, 4, 9, 0] # Default: 8 advanced-throttling-multiplier: 8 + +# Duration. Time period to use as the "retry-after" header value in response to throttled requests. +# Minimum resolution is 1 second. +# +# Examples: [30s, 10s, 5s, 1m] +# Default: 30s +advanced-throttling-retry-after: "30s" \ No newline at end of file -- cgit v1.2.3