[Pdns-users] pdns-recursor fork

Brendan Oakley gentux2 at gmail.com
Wed Sep 3 21:11:23 UTC 2008


Hi Lionel,

On Tue, Aug 5, 2008 at 6:03 AM, Lionel Dachaud <ldachaud at ubisoft.fr> wrote:
> Hi all,
>
>
>
> I recently installed pdns and pdns-recursor to test it before deploy it.
> However I have a little problem : when I used option "fork" in pdns-recursor
> config, I can't use rec_control to have some statistic. I obtain this error
> :
>
> Fatal: Unable to connect to remote '/var/run/pdns_recursor.controlsocket':
> No such file or directory
>
> That's right, because the right name is pdns_recursor.controlsocket.PID.
>
> So, is it possible to have statistic when fork option is enabled ?
>
>
>
> And another little "bug", always with fork activated, I need to stop
> manually the daemon several time to kill all instances and the pid's files
> aren't automatically destroy at the end of the processes.

As per the documentation, the fork option on pdns-recursor is still in
the experimental stage.

See:

http://downloads.powerdns.com/documentation/html/built-in-recursor.html#RECURSOR-SETTINGS

"fork

    If running on an SMP system with enough memory, this feature forks
PowerDNS so it benefits from two processors. Experimental. Renames
controlsockets, so care is needed to connect to the right one using
rec_control, using --socket-pid."

Therefore, if you are to run it this way, to query the statistics and
stop the processes cleanly, you will need to use the --socket-pid
parameter.

Brendan


More information about the Pdns-users mailing list