[zeromq-dev] Monitor current input queue length
Tom Quarendon
tom.quarendon at teamwpc.co.uk
Thu Jan 14 16:16:34 CET 2016
Is there any way to get the current input queue length for a socket, or determine whether input messages are being dropped?
I’m writing a server that sits on a ROUTER socket and processes messages from potentially multiple clients, using multiple threads.
What I’d really like to know is “is my server coping with demand”?
I *think* that the symptom of it not (correct me if I’m wrong) is that input messages sent by clients will be silently dropped, but I’d quite like to find a way of knowing that that has happened.
I’d like to be able to report something like “average input queue length”. It might be enough to get an event on the zmq_socket_monitor socket when the socket enters and exits such a state.
I appreciate that what I ask may not make sense, I probably don’t fully understand 0MQ. If so, please enlighten me!
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160114/809622b1/attachment.htm>
More information about the zeromq-dev
mailing list