Why doesn't Jango Static Generator & Nginx give me boss speed?

So, there have been a lot of articles lately, like this one , extolling the virtues of the Django static generator when used in conjunction with the light front panel, the destination web server. That makes a lot of sense to me.

However, I do not get anything like the results reported by other people - thousands of queries per second - and I do not know why this is so.

I am going to launch a redesign of my website in the newspaper. Now I have a static generator on a test server. And when I run Apache Bench on a specific static page, I get pretty pathetic results:

ab -c 10 -n 1000 http://journal.streamlister.com/news/

 Concurrency Level: 10 Time taken for tests: 53.011 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 21281212 bytes HTML transferred: 21067360 bytes Requests per second: 18.86 [#/sec] (mean) Time per request: 530.107 [ms] (mean) Time per request: 53.011 [ms] (mean, across all concurrent requests) Transfer rate: 392.04 [Kbytes/sec] received 

I look at the top the server during the siege, and I see that it does not fall on Apache or the database server at all. So this is, in fact, serving a cached page. Nginx works, but never gets more than 2% of memory usage. The CPU remains about 95% inactivity.

What am I doing wrong? Could I misconfigure nginx? My main configuration file is pasted below; the inclusion specific to this site is largely a copy of the exemplary configuration on

+6
django nginx
source share
2 answers

I am not an expert in this matter. But if the processor is idle, and the memory is not a bottleneck, then the hard drive comes to my mind. Perhaps its very slow and poor speed is a hint of a broken hard drive.

You should run some simple tests.

+3
source share

Where do you test? Another server in the same data center or in your home / work internet connection? It will be difficult to reliably check the performance of your site from your home connection. Firstly, your Internet connection may be too slow, and secondly, many personal routers cannot handle many simultaneous connections.

Also ... try running the test without images.

+1
source share

All Articles