Can I use paster on production site?
Asked Answered
S

1

6

I am trying to set up Mediacore (which is a Pylons app) on a production server. The docs suggest either apache mod_fastcgi or mod_wsgi as webserver but I try to avoid apache at any cost because of its being RAM-monger. On the other hand mediacore works just fine when I use it with paster, so I am wondering what are pros/cons of just ignoring apache and use paster as my production web server?

Soulful answered 25/1, 2011 at 23:12 Comment(0)
I
2

As your load grows, you may hit the CPU or DB limit. The typical answer is using several parallel backends. Then an nginx or lighttpd or whatever light HTTP server will come in handy and will allow you to distribute load to several paster servers and serve static files cheaply.

Up until then you're probably safe to run just paster, especially if you have excess CPU to waste on serving static files.

Ironist answered 26/1, 2011 at 0:3 Comment(2)
Thanks 9000. Is there any particular non-apache that you suggest for the web server? I've seen good benchmarks from nginx+uwsgi but it is rather new and lacks noob-friendly docs.Soulful
I'm not an expert either. People around me keep using nginx. You may also be interested to read this: nichol.as/benchmark-of-python-web-servers It seems that you may get quite a boost by moving from paster to another Python WSGI server.Ironist

© 2022 - 2024 — McMap. All rights reserved.