From d2b9010b2ebbf293377516af98810c6597687292 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 1 Nov 2021 14:53:51 -0400 Subject: prop328: Update it to reflect implementation Signed-off-by: David Goulet --- proposals/328-relay-overload-report.md | 39 ++++++++++++++++------------------ 1 file changed, 18 insertions(+), 21 deletions(-) (limited to 'proposals') diff --git a/proposals/328-relay-overload-report.md b/proposals/328-relay-overload-report.md index 5f4c6fd..9348c80 100644 --- a/proposals/328-relay-overload-report.md +++ b/proposals/328-relay-overload-report.md @@ -39,9 +39,15 @@ state" which can be one or many of the following load metrics: - Any OOM invocation due to memory pressure - Any ntor onionskins are dropped - TCP port exhaustion - - DNS timeout reached + - DNS timeout reached (X% of timeouts over Y seconds). - CPU utilization of Tor's mainloop CPU core above 90% for 60 sec + [Never implemented] - Control port overload (too many messages queued) + [Never implemented] + +For DNS timeouts, the X and Y are consensus parameters +(overload_dns_timeout_scale_percent and overload_dns_timeout_period_secs) +defined in param-spec.txt. The format of the overloaded line added in the server descriptor document is as follows: @@ -64,9 +70,7 @@ this 72 hour period restarts. The 'version' field is set to '1' for the initial implementation of this proposal which includes all the above overload metrics except from the CPU and -control port overload. The first version also uses a primitive logic for -detecting DNS timeouts (only if libevent failed a set of 3 DNS requests/retries -in a row). +control port overload. # 1.2. Token bucket size @@ -121,10 +125,7 @@ proposal which detects fd exhaustion only when a socket open fails. This section proposes a series of metrics that should be collected and reported to the MetricsPort. The Prometheus format (only one supported for -now) is described for each metrics but each of them are prefixed with the -following in order to have a proper namespace for "load" events: - -`tor_load_` +now) is described for each metrics. ## 2.1 Out-Of-Memory (OOM) Invocation @@ -134,7 +135,7 @@ so any invocation of the OOM should be reported. ``` # HELP Total number of bytes the OOM has cleaned up # TYPE counter -tor_load_oom_bytes_total{