Hi Vincent, On Fri, Oct 14, 2011 at 08:04:47AM +0200, Vincent Bernat wrote: > > Still, 40 ms of latency. I have also modified stud to not send the > > proxy line until there is something else to send (by commenting out > > "ev_io_start" in "if (OPTIONS.WRITE_PROXY_LINE)" section of > > handle_connect(). No change. Since the code handling PROXY protocol is > > so small in stud, I have no other idea of what to do. See here for the > > relevant code: > > https://github.com/bumptech/stud/blob/master/stud.c#L489 > > > Any idea where the latency could lie? > > The problem was stud did not disable Nagle's algorithm on the backend > side. Therefore, nothing to do with HAProxy.
Interesting, thank for the info. This means we all need to re-run tests then :-) Did you add a setsockopt(TCP_NODELAY) or was there just an option for that ? Cheers, Willy

