rspamd / rspamd

Rapid spam filtering system.
Other
2.03k stars 379 forks source link

Upstreams: make `min_resolve_interval` configurable #5007

Closed vstakhov closed 3 months ago

dragoangel commented 3 months ago

I would like to add this settings to docs, I see mentioning of other one in https://rspamd.com/doc/configuration/upstream.html already, but I can't find example where to put them. As I assume this not an options.inc?

vstakhov commented 3 months ago
❯ rspamadm confighelp options.upstream                                                                                                                                                                             
Showing help for options.upstream:
Configuration element: options.upstream
    Description: Upstreams configuration parameters
    Type: object
    Required: false

    Configuration element: error_time
        Description: Time frame to check errors
        Type: time
        Required: false
    Configuration element: lazy_resolve_time
        Description: Time to resolve upstreams addresses in lazy mode
        Type: time
        Required: false
    Configuration element: max_errors
        Description: Maximum number of errors during `error_time` to consider upstream down
        Type: uint
        Required: false
    Configuration element: resolve_min_interval
        Description: Minumum interval to perform resolving (60 seconds by default)
        Type: time
        Required: false
    Configuration element: revive_time
        Description: Time before attempting to recover upstream after an error
        Type: time
        Required: false
dragoangel commented 3 months ago

Thank you @vstakhov, added a PR https://github.com/rspamd/rspamd.com/pull/758/files to docs 😊