diff options
author | David Goulet <dgoulet@torproject.org> | 2021-10-20 09:59:04 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-10-20 10:00:03 -0400 |
commit | 7a8108ea87320da3008e65747baa43c1bbcf13c2 (patch) | |
tree | 380e171d32b66081529847027a2eb4415061df10 /src/feature/relay/relay_metrics.c | |
parent | 3752a71ded247cd6b32e0ee6c3dfaf906a63a915 (diff) | |
download | tor-7a8108ea87320da3008e65747baa43c1bbcf13c2.tar.gz tor-7a8108ea87320da3008e65747baa43c1bbcf13c2.zip |
relay: Overload state on DNS timeout is now X% over Y secs
With this commit, we will only report a general overload state if we've
seen more than X% of DNS timeout errors over Y seconds. Previous
behavior was to report when a single timeout occured which is really too
small of a threshold.
The value X is a consensus parameters called
"overload_dns_timeout_scale_percent" which is a scaled percentage
(factor of 1000) so we can represent decimal points for X like 0.5% for
instance. Its default is 1000 which ends up being 1%.
The value Y is a consensus parameters called
"overload_dns_timeout_period_secs" which is the time period for which
will gather DNS errors and once over, we assess if that X% has been
reached ultimately triggering a general overload signal.
Closes #40491
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/relay_metrics.c')
0 files changed, 0 insertions, 0 deletions