[zeromq-dev] Majordomo Pattern: if there's only one 'Service Name' currently? (UPDATE: message lost while running the example code)

pprun pprun.dragon at gmail.com
Tue Dec 4 06:41:50 CET 2012


Chuck,
Thanks for your reply.
I just checked out the example from github, but message lost:
mdp_broker.c
test_worker.c
mdclient2.c (asycn)

The phenomenons:
1. run without -v(verbos), failed fast around 25000 message received:
26436 replies received

2. run client with -v, always failed around 75000 message received:
--------------------------------------
[000]
[006] MDPC0X
[001] 02
[004] echo
[011] Hello world
12-12-04 13:17:05 W: permanent error, abandoning request
73000 replies received

3. If change the number of message to 50000:
    for (count = 0; count < 50000; count++) {

in either with or without -v(verbose), run successful:
--------------------------------------
[000]
[006] MDPC0X
[001] 02
[004] echo
[011] Hello world
12-12-04 13:26:04 W: permanent error, abandoning request
50000 replies received
Press [Enter] to close the terminal ...


My test environments:
$ uname -a
Linux pprun-debian 3.2.0-4-amd64 #1 SMP Debian 3.2.32-1 x86_64 GNU/Linux

Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-4)

$ /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Debian EGLIBC 2.13-35) stable release version 2.13, by 
Roland McGrath et al.

I did go over the 'Missing Message Problem Solver', but did not find any 
hint. Could you please give me some guidelines to solver this issue




On 12/04/2012 02:22 AM, Chuck Remes wrote:
> On Dec 3, 2012, at 11:58 AM, pprun<pprun.dragon at gmail.com>  wrote:
>
>> Hi,
>> If the tasks of workers are the same, is it possible to register more
>> than one workers(with the same service name) to broker, then let the
>> tasks run in parallel?
>
> Yes, absolutely. Try running the code with multiple workers registered for the same service to prove it to yourself.
>
> cr




More information about the zeromq-dev mailing list