On Thu, Jun 03, 2010 at 11:24:55AM -0600, Jason J. W. Williams wrote:
> Hi Laurie,
>
> This thread might be helpful:
> http://www.mail-archive.com/[email protected]/msg00926.html
yes indeed, there are various tuning knobs depending on the OS.
Also, haproxy needs to be set up with the appropriate global
maxconn setting. I'd say that there are several use ranges :
- below 500 concurrent connections (< 1000 total sockets)
=> can be launched by any non-privileged user, useful for testing.
- between 500 and a few thousands (2-3000) : generally requires root
privileges, but not much sensible to tuning nor OS optimisations
(eg: epoll/kqueue).
- between a few thousands and a few tens of thousands (30-40000) :
really requires fine tuning (source ports, socket buffers, etc)
and system-specific optimisations (epoll/kqueue).
- above : application-specific, must be purposedly built. The
performance will greatly depend on the workload, traffic type,
packet sizes, etc... and the required tuning will indicate a
minimal sizing and sometimes an architecture. I've seen up to
150000 connections per machine once, but this was reached via
trial and error.
Regards,
Willy