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
django nginx
hanksims
source share