How to evaluate apache / nginx setting

I plan to install nginx as a reverse proxy. I will have apache to deliver my dynamic content, and nginx will provide static content.

My configuration now has just Apache with fastCGI. This does not give me configuration problems and works fine.

After I configured nginx, I want to run some tests to find out if I really have performance, otherwise I will return.

Does anyone know how I can verify this type of setup? Or maybe someone has done this already and got some canned results, I will be glad to hear them.

PS. I know this is more of a serverfault type question, but I have seen numerous posts about apache and nginx, so I thought I would try

+7
benchmarking apache nginx
source share
4 answers

The best solution? Siege .

More accurate comparison tool than ab

+15
source share

one word: ab

+7
source share

A few things:

  • Do not use ab. It is single-threaded, and you will probably end up doing a comparative analysis of ab, not your HTTP server.

  • Do not run any stress tool that you use on the same system as the server. The HTTP server will compete with the tool for the CPU and other resources. Plus, a localized idealized version of the network does not reflect the whole picture (see Clause 4).

  • Pay attention to the load of memory and processor during the tests. So many people never consider this factor. Even if both settings work the same, if you use the RAM / CPU share, you have a winner.

  • RPS is not the only relevant metric. Things like slow clients (3G smartphones, congested networks, slow PCs) can have a clear negative effect on multithreaded servers. An idealized laboratory setup (local or isolated switch) does not reflect this.

  • Your FCGI script will become a bottleneck for any server. I would suggest using a tool that can pull out multiple resources (ideally a whole page, including static content) so that you can get a complete picture of the page load time.

You can use one of the "cloud" testing tools, such as browserermob.com or loadimpact.com.

+6
source share

http://curl-loader.sourceforge.net/

a little harder to configure but works great

+1
source share

All Articles