[Pdns-dev] Question regarding life time of backend threads in PDNS

Seema Datar sdatar at yahoo-inc.com
Thu Nov 7 06:19:19 CET 2013


Hi All,

We have a use case where we use PDNS with 8 backend threads. We needed to save thread specific data in an mmap. However, I came across the following in PDNS documentation -

PowerDNS may instantiate multiple instances of your backend, or destroy existing copies and instantiate new ones. Backend code should therefore be thread-safe with respect to its static data. Additionally, it is wise if instantiation is a fast operation, with the possible exception of the first construction.

The questions I had are -


  1.  What is the lifetime of a backend thread?
  2.  How often does a thread get destroyed and a new  thread get created?
  3.  Is there any interface available to do a cleanup before the thread ends?

Thanks,
Seema
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20131107/5b2c6eea/attachment.html>


More information about the Pdns-dev mailing list