watchd: introduce configurable 'outage_threshold'
This commit is contained in:
@@ -12,6 +12,7 @@ class Config(ComboParser):
|
||||
self.add_item(section, 'tor_hosts', str, '127.0.0.1:9050', 'comma-separated list of tor proxy address(es)', True)
|
||||
|
||||
section = 'watchd'
|
||||
self.add_item(section, 'outage_threshold', float, 4.0, 'mininum success percentage required to not drop check results', False)
|
||||
self.add_item(section, 'max_fail', int, 5, 'number of fails after which a proxy is considered dead', False)
|
||||
self.add_item(section, 'threads', int, 10, 'number of threads watchd uses to check proxies', True)
|
||||
self.add_item(section, 'timeout', int, 15, 'timeout for blocking operations (connect/recv/...) for proxy checks in seconds', False)
|
||||
|
||||
Reference in New Issue
Block a user