cache: a byte budget of 256 bytes per entry bounds the cached answers, evicting by clock, and a full or failed copy is counted instead of swallowed
This commit is contained in:
@@ -64,7 +64,7 @@ What a blocked query gets back.
|
||||
|
||||
| Key | Type | Default | Allowed values | What it does |
|
||||
|---|---|---|---|---|
|
||||
| `cache.size` | integer | 10000 | 1–1000000 entries | How many answers nxdns caches. The memory is reserved at startup. |
|
||||
| `cache.size` | integer | 10000 | 1–1000000 entries | How many answers nxdns caches. The memory for the cached answers grows with it, and when that memory is full, answers nobody has asked for lately make room for new ones. |
|
||||
| `cache.negative_ttl_max` | integer | 3600 | 0–86400 s | The longest nxdns caches an answer that a name does not exist; 0 turns that off. |
|
||||
|
||||
The cache cannot be turned off; the smallest is `cache.size = 1`.
|
||||
|
||||
Reference in New Issue
Block a user