Commit de775890 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Petr Špaček

document cache.ns_tout

parent 173caa6c
......@@ -756,6 +756,16 @@ daemons or manipulated from other processes, making for example synchronised loa
cache.min_ttl(5)
5
.. function:: cache.ns_tout([timeout])
:param timeout: number of milliseconds (default: :c:macro:`KR_NS_TIMEOUT_RETRY_INTERVAL`)
:return: current timeout
Get or set time interval for which a nameserver address will be ignored after determining that it doesn't return (useful) answers.
The intention is to avoid waiting if there's little hope; instead, kresd can immediately SERVFAIL or immediately use stale records (with ``serve_stale`` module).
.. warning:: This settings applies only to the current kresd process.
.. function:: cache.prune([max_count])
:param number max_count: maximum number of items to be pruned at once (default: 65536)
......
......@@ -45,8 +45,8 @@ enum kr_ns_score {
*/
#define KR_NS_DEAD (((KR_NS_TIMEOUT * 4) + 3) / 3)
/* If once NS was marked as "timeouted", it won't participate in NS elections
* at least KR_NS_TIMEOUT_RETRY_INTERVAL milliseconds. */
/** If once NS was marked as "timeouted", it won't participate in NS elections
* at least KR_NS_TIMEOUT_RETRY_INTERVAL milliseconds (now: one minute). */
#define KR_NS_TIMEOUT_RETRY_INTERVAL 60000
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment