Re: [web2py] Re: Rocket vs mod_wsgi

2011-12-13 Thread pbreit
You can get free CDN from CloudFlare.

[web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread rif
And now the weirdest thing: Enabling two CPUs on the virtual machine gave me the following weird results: nginx: 31.92 [#/sec] apache: 10.63 [#/sec] rocket: 10.36 [#/sec] So 1000 request with a concurrency of 20 on 2 CPUs actually slows down apache and rocket. I thought that apache and rocket

[web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread Massimo Di Pierro
Python multithreaded programs (all of them, including rocket and mod_wsgi) decrease performance the more CPUs you have. This is because of the GIL. It is a well known problem and, in view, the biggest problem with Python. In the case of apache, to improve things, you have to configure apache to

[web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread rif
This comparison was intended to help writing the why web2py paragraph from the book (https://groups.google.com/d/topic/web2py/29jdfjejwZo/discussion )

[web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread Massimo Di Pierro
I understand and it is very much appreciated. I will correct it. massimo On Dec 11, 10:15 am, rif feric...@gmail.com wrote: This comparison was intended to help writing the why web2py paragraph from the book (https://groups.google.com/d/topic/web2py/29jdfjejwZo/discussion)

[web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread peter
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 feric...@gmail.com wrote: In the same environment I tested nginx configuration: nginx: 1.0.10 uwsgi:

[web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread rif
Compiled uwsgi 0.9.9.3 (the 0.9.8.1 did not now about pythonpath) uwsgi --pythonpath /opt/web-apps/web2py --module wsgihandler --http :80 -s /tmp/we2py.sock uwsgi.log 21 1 CPU: 17.83 [#/sec] (better than rocket) 2 CPUs: 17.98 [#/sec] uwsgi --pythonpath /opt/web-apps/web2py --module wsgihandler

Re: [web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread Roberto De Ioris
Compiled uwsgi 0.9.9.3 (the 0.9.8.1 did not now about pythonpath) uwsgi --pythonpath /opt/web-apps/web2py --module wsgihandler --http :80 -s /tmp/we2py.sock uwsgi.log 21 1 CPU: 17.83 [#/sec] (better than rocket) 2 CPUs: 17.98 [#/sec] uwsgi --pythonpath /opt/web-apps/web2py --module