From: Michal 'vorner' Vaner Date: Mon, 13 Feb 2012 11:17:35 +0000 (+0100) Subject: [1596] Some comments X-Git-Tag: trac2351_base~97^2~32^2~3^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e363eaa09c4ab1945ba91a117cca7ea892ea78a;p=thirdparty%2Fkea.git [1596] Some comments --- diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in index 3037a2b47c..2f7456f023 100755 --- a/src/bin/bind10/bind10_src.py.in +++ b/src/bin/bind10/bind10_src.py.in @@ -193,9 +193,13 @@ class BoB: self.nocache = nocache self.component_config = {} # Some time in future, it may happen that a single component has - # multple processes. If so happens, name "components" may be - # inapropriate. But as the code isn't probably completely ready - # for it, we leave it at components for now. + # multple processes (like a pipeline-like component). If so happens, + # name "components" may be inapropriate. But as the code isn't probably + # completely ready for it, we leave it at components for now. We also + # want to support multiple instances of a single component. If it turns + # out that we'll have a single component with multiple same processes + # or if we start multiple components with the same configuration (we do + # this now, but it might change) is an open question. self.components = {} # Simply list of components that died and need to wait for a # restart. Components manage their own restart schedule now diff --git a/src/bin/resolver/main.cc b/src/bin/resolver/main.cc index 8d005ac90f..1be8b2c1f5 100644 --- a/src/bin/resolver/main.cc +++ b/src/bin/resolver/main.cc @@ -94,12 +94,8 @@ my_command_handler(const string& command, ConstElementPtr args) { const int pid(args->get("pid")->intValue()); const pid_t my_pid(getpid()); if (my_pid != pid) { - // It is not for us - // - // Note that this is completely expected situation, if - // there are multiple instances of the server running and - // another instance is being shut down, we get the message - // too, due to the multicast nature of our message bus. + // It is not for us (this is expected, see auth/command.cc + // and the ShutdownCommand there). return answer; } } diff --git a/src/lib/python/isc/bind10/component.py b/src/lib/python/isc/bind10/component.py index a3ae0b845a..091bfee626 100644 --- a/src/lib/python/isc/bind10/component.py +++ b/src/lib/python/isc/bind10/component.py @@ -22,9 +22,9 @@ Dependencies between them are not yet handled. It might turn out they are needed, in that case they will be added sometime in future. This framework allows for a single process to be started multiple times (by -specifying multiple components with the same configuration). However, the rest -of the system might not handle such situation well, so until it is made so, -it would be better to start each process at most once. +specifying multiple components with the same configuration). We might want +to add a more convenient support (like providing a count argument to the +configuration). This is yet to be designed. """ import isc.log