2008/11/13 gert <[EMAIL PROTECTED]>: > > OK i don't understand the mod_proxy part. Why want you use mod_proxy > while mod_wsgi is already proxying things for you, with all the mod > wsgi alias directives, i mean you don't use mod_php behind mod_proxy > either do you ? > > Anyway try concentrating to make databases as fast as possible with > mod_wsgi, much more interesting concept with the python gil and all. > Trust me mod_wsgi simply rules when you bench mark hello world stuff > making it almost just as fast as plain static files. > > On Nov 12, 8:31 pm, Carl Nobile <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I friend of mine just did some benchmarks that may interest some of >> you, >> >> http://eric.themoritzfamily.com/2008/11/12/wsgi-benchmarking/
CherryPy and Pylons people recommend proxying behind Apache or some other web server as pure Python web servers are not as good at serving static files. By proxying you can delegate serving of static files to the Apache in front. In the case of mod_wsgi, because it is run within Apache then you don't strictly need another server to handle static files as same server can do it. That said, putting Apache/mod_wsgi behind a proxy or another web server can have various benefits. The benefit of a straight proxy is that requests can be distributed across a cluster of machines. Ie., so called horizontal scaling. Instead of a proxy in front, using a web server such as nginx in front can have benefits as nginx can serve static files more efficiently and also isolates Apache from slow clients. Anyway, the important thing in those benchmarks is that it is testing an arrangement that would be used for clustering. Although, it isn't clear for CherryPy where the static files would be served from. If for all configurations static files are to be served by separate content media servers under different host name, then not an issue and the test is specifically comparing mechanisms for hosting dynamic requests only. As per comments in that blog, I perhaps would suggest other options for the proxy than Apache, such as perbal or pound. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
