xx yy a écrit : > My tests were conducted on a Xen hypervisor with 3 Virtual Machines > running > Ubuntu Server 8.04 64bit: VM are nice for dev/testing, not so when you have to get the full perfs of a system .. > #1: HAPROXY 1.3.18 compiled from source 128 MB, 1 CPU > #2: Apache 256 MB, 1 CPU > #3 Lighttpd 512 MB, 2 CPU Why so few memory/cpu for apache which is the most memory/cpu hog of the two webservers you have ?
> Both Apache2-mpm-worker and lighttpd were serving a very simple index.html > <html><body>It works!</body></html> With which configuration ? also, mpm-worker isn't the best performing option for apache with static content > I don't know if this relates to Xen's hypervisor own TCP/IP > implementation or the ubuntu server tcp/ip settings. Well, did you bench your webservers first ? on the loopback ? Before playing with system settings the most effective mean to change the perfs of a webserver is to tweak the webserver. You also need to adjust haproxy settings according to your webservers capabilities (maxconn/weight/minconn/inter). A basic apache2 memory imprint is around 10Mb/process, so to answer 100 concurrent connections it need 1Go of memory > Based on this > My question is: what settings do you recommend for the Linux > kernel/system in order that > HAProxy and the webservers to be able to serve many connections at a > time ? I would recommend tuning the software stack *before* tuning the system stack.

