DistributedNonsense/CorrugatedIron — Issue #26: Add TCP_NODELAY to socket options
Author: peschkaj
Created: 2011-10-31 00:38:51+00:00
State: open

Nagle's Algorithm:

In most cases — especially when using the PBC API, which tends to use small messages — clients should set the TCP_NODELAY flag on opened socket connections to Riak, which disables Nagle's Algorithm. Latency profiles having a minimum of 40 milliseconds often indicate the presence of Nagle on either end of the connection. If the client application has significant round-trip latency to the Riak cluster, disabling Nagle will have little effect, but for well-connected clients it can significantly reduce latency.