[bind10-dev] interaction between 'active' module list and multi-process modules

Stephen Morris stephen at isc.org
Mon Feb 6 15:58:05 UTC 2012


On 06/02/2012 15:16, Michal 'vorner' Vaner wrote:
> Hello
> 
> On Mon, Feb 06, 2012 at 12:28:36PM +0000, Stephen Morris wrote:
>> Auth shutdown [n]
>> 
>> Without the argument, the command shuts down all Auth processes;
>> with the argument it shuts down only Auth process "n".
> 
> Would that be specific to shutdown or would it work for any
> command?

>From the user point of view, it only make sense to accept a parameter
where there is a possibility of multiple processes, so bindctl would
only accept one for the authoritative server and resolver.

In the underlying logic, it might be easier if all command messages
include a parameter indicating the process.

> And if for any command, how would the syntax work together with
> parameters of the command?

I would suggest that the command always be sent with a parameter, any
negative number indicating "all processes" (so "Auth shutdown" is the
equivalent of "Auth shutdown -1".)

> And who would be responsible for handling the send to all or send
> to one of them? That could not be the boss, it doesn't see the
> commands (they are sent directly to the module).

It would be a "send to all".  The Auth process knows its own number
(it received it when it started up) so when it receives a shutdown
command, it shuts down if the process number if negative or equal to
its own number: otherwise it ignores the command.

Stephen



More information about the bind10-dev mailing list