[zeromq-dev] random missed messages with epgm pub/sub

Edwin van den Oetelaar edwin at oetelaar.com
Tue Jan 12 18:54:12 CET 2016

Hello Dutch guy,

1) I would try to use strace and see if it hangs in select() epoll() or
2) I would try a quick python test like so.. and see if that works to
exclude all this javascript stuff

# consumer

import zmq

context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.setsockopt(zmq.SUBSCRIBE, 'test')
socket.setsockopt(zmq.SUBSCRIBE, 'topic_1')

while True:
    data = socket.recv()
    print data

Good luck,

Edwin van den Oetelaar (near Eindhoven)

On Tue, Jan 12, 2016 at 2:27 PM, Bart van Wissen <bart.wissen at speakap.nl>

> We are looking for some thoughts and advise on our PUB-SUB setup and EPGM
> messages which do arrive at their destination (tcpdump based) but are never
> offered as events to our subscriber.
> Our setup:
> - We have 3 publishers with different source IPs (PHP processes which
> restarts after sending 100 messages)
> - Subscriber is a NodeJS process
> - Publisher and Subscriber use libzmq v4.0.5
> - Subscriber uses node.js zmq bindings (https://www.npmjs.com/package/zmq)
> - Message rate ~ 50/s
> - Publisher and subscriber are in the same broadcast domain
> Our observations:
> - For random topics, random messages are not received by the subscriber
> - A message that is not received by the subscriber (never offered as an
> event to the nodejs process) is seen by tcpdump so we don’t face packet
> loss.
> Subscriber tuning we did so far:
> - Set ZMQ_RCVHWM to 0
> Any thoughts on where we should look or what we should do?
> --
> Bart van Wissen
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160112/55ec8fe1/attachment.htm>

More information about the zeromq-dev mailing list