Re: Question regarding life time of backend threads in PDNS

Seema Datar <[email protected]>
Newsgroups gmane.network.dns.powerdns.user,gmane.network.dns.powerdns.devel
Message-ID <CEA28F02.5CC26%[email protected]>
Hi All,

Does anybody have more information on this?

Thanks,
Seema

From: Seema Datar <[email protected]<mailto:[email protected]>>
Date: Thursday, November 7, 2013 10:49 AM
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Subject: Question regarding life time of backend threads in PDNS

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

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.