PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.72k stars 912 forks source link

Make amount of entries in (stat)ring configurable #9047

Open myH2Oservers opened 4 years ago

myH2Oservers commented 4 years ago

Short description

Currently the (stat)ring seems to be hardcoded to a 10K entries default. This amount can be resized in the PowerDNS webinterface. We hit the limit of 10K pretty fast for a couple of rings, for example the unauth-queries ring within an hour after restarting PowerDNS, and have to manually adapt it to 500K items to hold more information. However this amount is reset back to 10K on each restart.

One thing to think about when implementing this feature: 1 ring size setting for all rings or a separate ring size setting for each ring. Maybe the last is preferable to avoid other rings getting huge without being used.

Habbie commented 4 years ago

Makes sense! Want to try your hand at implementing this feature?

myH2Oservers commented 4 years ago

I wish I could help.. I am able to read most of this code but I better not start writing it.. not experienced enough to contribute in this language. sorry.

Habbie commented 4 years ago

No problem, we'll see if somebody else (or us) feels like it :)