Any chance of trying uwsgi on its own, something like this uwsgi --pythonpath /opt/web-apps/web2py --module wsgihandler --http : 80 -s /tmp/we2py.sock
Thanks Peter On Dec 11, 1:10 pm, rif <[email protected]> wrote: > In the same environment I tested nginx configuration: > > nginx: 1.0.10 > uwsgi: 0.9.8.1 > > ab -n1000 -c20http://192.168.122.187/welcome/default/index > This is ApacheBench, Version 2.3 <$Revision: 655654 $> > Copyright 1996 Adam Twiss, Zeus Technology Ltd,http://www.zeustech.net/ > Licensed to The Apache Software Foundation,http://www.apache.org/ > > Benchmarking 192.168.122.187 (be patient) > Completed 100 requests > Completed 200 requests > Completed 300 requests > Completed 400 requests > Completed 500 requests > Completed 600 requests > Completed 700 requests > Completed 800 requests > Completed 900 requests > Completed 1000 requests > Finished 1000 requests > > Server Software: nginx/1.0.10 > Server Hostname: 192.168.122.187 > Server Port: 80 > > Document Path: /welcome/default/index > Document Length: 11432 bytes > > Concurrency Level: 20 > Time taken for tests: 58.306 seconds > Complete requests: 1000 > Failed requests: 0 > Write errors: 0 > Total transferred: 11819000 bytes > HTML transferred: 11432000 bytes > *Requests per second: 17.15 [#/sec] (mean)* > Time per request: 1166.116 [ms] (mean) > Time per request: 58.306 [ms] (mean, across all concurrent requests) > Transfer rate: 197.96 [Kbytes/sec] received > > Connection Times (ms) > min mean[+/-sd] median max > Connect: 0 1 1.3 0 12 > Processing: 218 1155 180.3 1104 2045 > Waiting: 217 1154 180.3 1104 2045 > Total: 225 1156 180.0 1105 2046 > > Percentage of the requests served within a certain time (ms) > 50% 1105 > 66% 1124 > 75% 1152 > 80% 1177 > 90% 1247 > 95% 1507 > 98% 2009 > 99% 2022 > 100% 2046 (longest request) > > Conclusion: > Just a bit slower than Rocket. > > Nginx + wsgi is my current server configuration

