[rabbitmq-discuss] Huge latency in Linux, compared with Leopard
Matthias Radestock
matthias at lshift.net
Sun Sep 28 10:57:44 BST 2008
Holger Hoffstätte wrote:
> Matthias Radestock wrote:
>> Adding the line
>>
>> -kernel inet_default_listen_options '[{nodelay, true}]' \
>>
>> to the options in the rabbitmq-server script does improve the results
>> significantly.
>
> Yay! Glad it helped.
Actually, the above isn't quite right, at least for the Unix
rabbitmq-server script, since that already sets some options in
ERL_ARGS. So what one needs to do is extend that option list, i.e.
change the line
ERL_ARGS="+K true +A30 -kernel inet_default_listen_options
[{sndbuf,16384},{recbuf,4096}]"
to
ERL_ARGS="+K true +A30 -kernel inet_default_listen_options
[{nodelay,true},{sndbuf,16384},{recbuf,4096}]"
>> So should we make TCP_NODELAY the default?
>
> That's difficult to decide, though IMHO it is probably the right thing to
> do for most common scenarios today.
Ok. I have filed some bugs to get this done in the next release.
Matthias.
More information about the rabbitmq-discuss
mailing list