Ondrej,
I understand that when it is loaded the @ gets converted, but well that
is dependent on your code, it doesn't have to be this way. if your code
has data structure to link many domains to the same zone. It would use a
bit more CPU, but the savings on memory in cases like mine could be
enormous.
I know sharing a single zone in memory would force one to give up other
functionality such dynamic updates to zones etc... but well I can forgo
many features to solve this little problem.
I am currently 17000 zones with one single zone file in bind it eats
about 173MB real of ram, I now need to go to start off with 600,000 or
maybe 1M zones.... and I don't fancy using 6GB of ram. or having to try
Bind MySQL :-)
I will look at 1.5.0rc.1
On 6/13/2014 2:50 AM, Ondřej Surý wrote:
Hi Maren,
it would never be the 'same' zone file, since you have different
full labels (
foo.example.net is different from
foo.example.com) per
zone after loading them into the memory.
I would suggest that this use case scenario would be best served by
some new query processing dynamic module[1] that you would configure
for all those zones and that would always respond with the same data.
1. See the Knot DNS 1.5.0rc1 release notes and documentation
Ondrej
--
Ondřej Surý -- Chief Science Officer
-------------------------------------------
CZ.NIC, z.s.p.o. -- Laboratoře CZ.NIC
Americka 23, 120 00 Praha 2, Czech Republic
mailto:ondrej.sury@nic.cz
http://nic.cz/
-------------------------------------------
----- Original Message -----
> From: "Maren S. Leizaola" <leizaola(a)udr.hk.com>
> To: knot-dns-users(a)lists.nic.cz
> Sent: Thursday, June 12, 2014 7:50:02 PM
> Subject: [knot-dns-users] Parking page with a large number of zones pointing the the
same file.
> Hello,
> I would like to know what the memory allocation/usage
> would be like if say I point 1M zones to the same zone file.
>
> Will it allocate memory for each of the zones or can it just allocate
> memory once as it is the same zone file ?
>
> Regards,
> Maren.
> _______________________________________________
> knot-dns-users mailing list
> knot-dns-users(a)lists.nic.cz
>
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users