[rabbitmq-discuss] Only 20 req-resps per second
selfsorted at gmail.com
Thu Nov 11 15:33:24 GMT 2010
On Nov 11, 12:21 pm, David Wragg <da... at rabbitmq.com> wrote:
> ssorted <selfsor... at gmail.com> writes:
> > How to debug it further?
> In my experience, surprising slowness in applications using TCP sockets
> is often due to the Nagle algorithm. This might not be the cause in
> your case, but it's definitely something to eliminate. I see that
> neither pika or py-amqplib set TCP_NODELAY.
> So you might want to try adding something like
> sock.setsockopt(SOL_TCP, TCP_NODELAY, 1)
It solved the problem, thank you! I added the line to amqplib version:
Now I get 600 requests+reponses per second! Such performance is
sufficient for me.
More information about the rabbitmq-discuss