thanks for the quick reply, Willy!

On 19/05/14 22:21, Willy Tarreau wrote:

  * Is the right way to do this in HAProxy?

At least it scales better (since you're not limited to 64k connections
per destination ip:port anymore). But since version 1.5-dev25, you have
unix sockets and abstract namespace sockets which have the benefit of
showing a lower latency (2.5 times lower than TCP) and not consuming
ports, so they're better suited for local communications.

Ah, I see, cool. Are there any system limits I should be aware of if I replace the multiple bind/server with a single bind/server going over a unix socket?

Warning, you have a syntax issue here :

    timeout client 2m if host_is_api

It's not correct. That sets your timeout to 2m, because the rest of
the line after the value is simply ignored.

ah, damn. So there is no way to have conditional client timeouts based on the Host header?


Cheers,
Florian

Reply via email to