… | |
… | |
82 | This can be used to run a node - together with some services, this makes |
82 | This can be used to run a node - together with some services, this makes |
83 | it unnecesary to write any wrapper programs. |
83 | it unnecesary to write any wrapper programs. |
84 | |
84 | |
85 | =over 4 |
85 | =over 4 |
86 | |
86 | |
87 | =item run <profile> <...> |
87 | =item run <configure_args>... |
88 | |
88 | |
89 | Runs a node by calling C<AnyEvent::MP::Kernel::configure> with the given |
89 | Runs a node by calling C<AnyEvent::MP::Kernel::configure> with the given |
90 | arguments. The node runs under L<AnyEvent::Watchdog>, can be restarted |
90 | arguments. The node runs under L<AnyEvent::Watchdog>, can be restarted |
91 | (and autorestarted, see the L<AnyEvent::Watchdog> manual). |
91 | (and autorestarted, see the L<AnyEvent::Watchdog> manual). A very common |
|
|
92 | invocation is to just specify a profile using the profile parameter |
|
|
93 | |
|
|
94 | aemp run profile database-backend |
|
|
95 | |
|
|
96 | ... but you can use most arguments that C<configure> understands: |
|
|
97 | |
|
|
98 | aemp run nodeid mynode2 profile someprofile |
92 | |
99 | |
93 | Care has been taken to load (almost) no modules other than |
100 | Care has been taken to load (almost) no modules other than |
94 | L<AnyEvent::Watchdog> and the modules it loads, so everything (including |
101 | L<AnyEvent::Watchdog> and the modules it loads, so everything (including |
95 | the L<AnyEvent::MP> modules themselves) will be freshly loaded on restart, |
102 | the L<AnyEvent::MP> modules themselves) will be freshly loaded on restart, |
96 | which makes upgrading everything except the perl binary easy. |
103 | which makes upgrading everything except the perl binary easy. |
… | |
… | |
339 | |
346 | |
340 | Example: create a C<server> profile, give it a random node name, some seed |
347 | Example: create a C<server> profile, give it a random node name, some seed |
341 | nodes and bind it on an unspecified port on all local interfaces. You |
348 | nodes and bind it on an unspecified port on all local interfaces. You |
342 | should add some services then and run the node... |
349 | should add some services then and run the node... |
343 | |
350 | |
344 | aemp server setnodeid anon/ setseeds doomed,10.0.0.2:5000 setbinds "*:*" |
351 | aemp profile server nodeid anon/ seeds doomed,10.0.0.2:5000 binds "*:*" |
345 | |
352 | |
346 | =item delprofile <name> |
353 | =item delprofile <name> |
347 | |
354 | |
348 | Deletes the profile of the given name. |
355 | Deletes the profile of the given name. |
349 | |
356 | |