… | |
… | |
38 | mon $port, $otherport # kill otherport on abnormal death |
38 | mon $port, $otherport # kill otherport on abnormal death |
39 | mon $port, $otherport, @msg # send message on death |
39 | mon $port, $otherport, @msg # send message on death |
40 | |
40 | |
41 | =head1 CURRENT STATUS |
41 | =head1 CURRENT STATUS |
42 | |
42 | |
|
|
43 | bin/aemp - stable. |
43 | AnyEvent::MP - stable API, should work |
44 | AnyEvent::MP - stable API, should work. |
44 | AnyEvent::MP::Intro - outdated |
45 | AnyEvent::MP::Intro - uptodate, but incomplete. |
45 | AnyEvent::MP::Kernel - mostly stable |
46 | AnyEvent::MP::Kernel - mostly stable. |
46 | AnyEvent::MP::Global - mostly stable |
47 | AnyEvent::MP::Global - stable API, protocol not yet final. |
47 | AnyEvent::MP::Node - mostly stable, but internal anyways |
|
|
48 | AnyEvent::MP::Transport - mostly stable, but internal anyways |
|
|
49 | |
48 | |
50 | stay tuned. |
49 | stay tuned. |
51 | |
50 | |
52 | =head1 DESCRIPTION |
51 | =head1 DESCRIPTION |
53 | |
52 | |
… | |
… | |
178 | the current nodename will be used instead (i.e. F<uname -n>). |
177 | the current nodename will be used instead (i.e. F<uname -n>). |
179 | |
178 | |
180 | The function first looks up the profile in the aemp configuration (see the |
179 | The function first looks up the profile in the aemp configuration (see the |
181 | L<aemp> commandline utility). the profile is calculated as follows: |
180 | L<aemp> commandline utility). the profile is calculated as follows: |
182 | |
181 | |
183 | First, all remaining key => value pairs will be used. Then they will be |
182 | First, all remaining key => value pairs (all of which are conviniently |
|
|
183 | undocumented at the moment) will be used. Then they will be overwritten by |
184 | overwritten by any values specified in the global default configuration |
184 | any values specified in the global default configuration (see the F<aemp> |
185 | (see the F<aemp> utility), then the chain of profiles selected, if |
185 | utility), then the chain of profiles selected, if any. That means that |
186 | any. That means that the values specified in the profile have highest |
186 | the values specified in the profile have highest priority and the values |
187 | priority and the values specified via C<initialise_node> have lowest |
187 | specified via C<initialise_node> have lowest priority. |
188 | priority. |
|
|
189 | |
188 | |
190 | If the profile specifies a node ID, then this will become the node ID of |
189 | If the profile specifies a node ID, then this will become the node ID of |
191 | this process. If not, then the profile name will be used as node ID. The |
190 | this process. If not, then the profile name will be used as node ID. The |
192 | special node ID of C<anon/> will be replaced by a random node ID. |
191 | special node ID of C<anon/> will be replaced by a random node ID. |
193 | |
192 | |
… | |
… | |
195 | aemp protocol listeners on all binds specified (it is possible and valid |
194 | aemp protocol listeners on all binds specified (it is possible and valid |
196 | to have no binds, meaning that the node cannot be contacted form the |
195 | to have no binds, meaning that the node cannot be contacted form the |
197 | outside. This means the node cannot talk to other nodes that also have no |
196 | outside. This means the node cannot talk to other nodes that also have no |
198 | binds, but it can still talk to all "normal" nodes). |
197 | binds, but it can still talk to all "normal" nodes). |
199 | |
198 | |
200 | If the profile does not specify a binds list, then the node ID will be |
199 | If the profile does not specify a binds list, then a default of C<*> is |
201 | treated as if it were of the form C<host:port>, which will be resolved and |
200 | used. |
202 | used as binds list. |
|
|
203 | |
201 | |
204 | Lastly, the seeds list from the profile is passed to the |
202 | Lastly, the seeds list from the profile is passed to the |
205 | L<AnyEvent::MP::Global> module, which will then use it to keep |
203 | L<AnyEvent::MP::Global> module, which will then use it to keep |
206 | connectivity with at least on of those seed nodes at any point in time. |
204 | connectivity with at least on of those seed nodes at any point in time. |
207 | |
205 | |