Skip to content

Commit

Permalink
Update options.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoangel authored Jun 8, 2024
1 parent a5cce63 commit aa04e54
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/configuration/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ dns {
sockets = 16;
retransmits = 5;
}
upstream {
resolve_min_interval = 60;
}
tempdir = "/tmp";
url_tld = "${PLUGINSDIR}/effective_tld_names.dat";
classify_headers = [
Expand Down Expand Up @@ -201,4 +204,11 @@ neighbours {

## Upstream options

See [this document]({{ site.baseurl }}/doc/configuration/upstream.html) for details.
Upstreams logic and settings described at dedicated [document]({{ site.baseurl }}/doc/configuration/upstream.html).
Options for upstream fall under a dedicated subsection called `upstream` and control their behaviors in Rspamd. Here is a list of available tunables:

* `error_time` (defaults to `10`): time frame to check errors in seconds
* `max_errors` (defaults to `4`): maximum count of errors during `error_time` to consider upstream is down
* `revive_time` (defaults to `60`): count of seconds before attempting to recover upstream after it was faced `max_errors` and marked as unhealhy
* `lazy_resolve_time` (defaults to `3600`, which is 1 hour): time in seconds to resolve upstreams addresses in lazy mode
* `resolve_min_interval` (defaults to `60`): minumum interval in seconds to perform resolving upstream DNS resolution

0 comments on commit aa04e54

Please sign in to comment.