[zeromq-dev] Load balancing REQ/REP sockets
Brian Granger
ellisonbg at gmail.com
Thu Mar 18 18:23:12 CET 2010
Martin,
I have done some further testing with simple ZMQ_HWM on P2P sockets.
* I am using a pair of P2P sockets, both with HWM=LWM=2.
* No matter what sequence of sends/recv I do, messages are always sent
immediately (I see this on wireshark).
* I put in debug statements into pipe.cpp. I can see the various
calls that are managing hwm/lwm so I know something is happening. I
dont' yet understand the reader_t/writer_t logic in pipe.cpp or the
desired behavior enough to really debug this.
Cheers,
Brian
On Thu, Mar 18, 2010 at 9:42 AM, Brian Granger <ellisonbg at gmail.com> wrote:
> Martin,
>
> Thanks for clarifying this. I just ran wireshark to try to understand
> how all this works:
>
> * 1 XREQ socket with HWM=LWM=2.
> * 2 REP sockets that are connected that also have HWM=LWM=2.
>
> Then I just started sending messages on the XREQ. I could see from
> wireshark that the messages continue to be delivered to the REP
> sockets even after passing the HWM. Is this the expected behavior?
>
>>> I have set HWM and LWM to 2 in the XREQ + multiple REP situation. The
>>> XREQ can keep sending messages, but where do they go? It sounds like
>>> the XREQ holds the messages in its outgoing queue?
>>
>> I am not sure - are you speaking of the case where there's no REP connected
>> to your XREQ?
>
> I was speaking of the case described above- multiple REP sockets
> connected to the XREQ.
>
> Cheers,
>
> Brian
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com
More information about the zeromq-dev
mailing list