Disable cache in bind 9.6
Dmitry Rybin
kirgudu at corbina.net
Wed Jan 21 09:10:05 UTC 2009
Alan Clegg wrote:
> Dmitry Rybin wrote:
>> Matus UHLAR - fantomas wrote:
>>> On 20.01.09 12:49, Dmitry Rybin wrote:
>>>> How to disable cache in bind-9.6? ttl=0 - bad idea.
>>> if you know that setting TTL to 0 is a bad idea, why do yuo think that
>>> disabling a cache in BIND is not a bad idea?
>>>
>> Because under high load cache grows to maximum system size and stop
>> responding to queues. This is known problem.
>
> This is NOT a "known problem" in 9.6. Please provide your configuration
> and logs that show the issue that you are having.
>
> AlanC
>
this is known problem of all bind's. Bind grows up to 2Gb, become slowly
answer to queries and can't restart, only kill -9. FreeBSD 5.x....7.1,
Linux 2.6.
============
options {
directory "/etc/namedb";
max-cache-size 16M;
max-cache-ttl 3600;
max-ncache-ttl 1800;
cleaning-interval 10;
transfers-in 1000;
transfers-out 1000;
transfers-per-ns 100;
minimal-responses yes;
allow-recursion {
xxx.xxx.xxx.xxx;
};
recursive-clients 10000;
clients-per-query 80;
max-clients-per-query 100 ;
view "world" {
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
};
view "view0"{
max-cache-size 16M;
match-clients {
XXX.XXX.XXX.XXX;
};
include "net-views/view0.conf";
};
[... skip 48 views ...]
view "view50"{
max-cache-size 8M;
match-clients {
XXX.XXX.XXX.XXX;
};
include "net-views/view50.conf";
};
More information about the bind-users
mailing list