[Pdns-users] Performance of LUABackend

fredrik danerklint fredan-pdns at fredan.org
Thu May 12 19:56:45 UTC 2011

> > Not yet since it only can handle the "minimal" (ie: no slave, master or
> > dnssec) or would you like to have this at this stage with just the bare
> > "minimal" ? If so, no problem. I do need some help to be able to
> > understand what cause it to crash if there is more than one thread in
> > PowerDNS. When I tried with luajit for one thread it sad something like
> > stackoverflow... So I have done something that I don't quiet understand
> > at this moment.
> Are you trying to use a single lua_State from multiple threads?

Well, no. It's basiclly an structure in the backend itself so when PowerDNS 
creates new threads, I hope, that the backend structure is a new one and not a 
copy of another one..

cat luabackend.hh:
class LUABackend : public DNSBackend {
lua_State *lua;

and I have this in the reload function:

void LUABackend::reload() {
if (lua)

lua = lua_open();


More information about the Pdns-users mailing list