ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Intro.pod
(Generate patch)

Comparing AnyEvent-MP/MP/Intro.pod (file contents):
Revision 1.59 by root, Sat Mar 24 00:48:53 2012 UTC vs.
Revision 1.60 by root, Fri Mar 30 01:59:19 2012 UTC

193A lot of info, but at least you can see that it does something. To only 193A lot of info, but at least you can see that it does something. To only
194get info about AnyEvent::MP, you can use C<AE_LOG=AnyEvent::MP=+log> in 194get info about AnyEvent::MP, you can use C<AE_LOG=AnyEvent::MP=+log> in
195your environment. 195your environment.
196 196
197The other environment variable that can be useful is 197The other environment variable that can be useful is
198C<PERL_ANYEVENT_MP_TRACE>, which, when set to a true value, will cause 198C<AE_MP_TRACE>, which, when set to a true value, will cause
199most messages that are sent or received to be printed. For example, F<aemp 199most messages that are sent or received to be printed. For example, F<aemp
200restart rijk> might output these message exchanges: 200restart rijk> might output these message exchanges:
201 201
202 SND rijk <- [null,"eval","AnyEvent::Watchdog::Util::restart; ()","aemp/cerebro/z4kUPp2JT4#b"] 202 SND rijk <- [null,"eval","AnyEvent::Watchdog::Util::restart; ()","aemp/cerebro/z4kUPp2JT4#b"]
203 SND rain <- [null,"g_slave",{"'l":{"aemp/cerebro/z4kUPp2JT4":["10.0.0.1:48168"]}}] 203 SND rain <- [null,"g_slave",{"'l":{"aemp/cerebro/z4kUPp2JT4":["10.0.0.1:48168"]}}]
411different computers. 411different computers.
412 412
413Each time you start the sender, it will send a message to all receivers it 413Each time you start the sender, it will send a message to all receivers it
414finds (you have to interrupt it manually afterwards). 414finds (you have to interrupt it manually afterwards).
415 415
416Additional experiments you could try include using 416Additional experiments you could try include using C<AE_MP_TRACE=1> to see
417C<PERL_ANYEVENT_MP_TRACE=1> to see which messages are exchanged, or 417which messages are exchanged, or starting the sender before the receiver
418starting the sender before the receiver and see how long it then takes to 418and see how long it then takes to find the receiver.
419find the receiver.
420 419
421=head3 Splitting Network Configuration and Application Code 420=head3 Splitting Network Configuration and Application Code
422 421
423OK, so far, this works reasonably. In the real world, however, the person 422OK, so far, this works reasonably. In the real world, however, the person
424configuring your application to run on a specific network (the end user 423configuring your application to run on a specific network (the end user

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines