Currently I am using nginx to reverse proxy paster, to server Mediacore (a Pylons app). However, this configuration fails when I try to submit a video. I particualrly try to avoid fat appache, which is the official Mediacore recommendation. In a famous "benchmark of python webservers" I've seen that uwsgi has amazing performance but it is rather newcommer. So I could not find any good tutorial for it which is both comprehensive and noob-friendly. So I I appreciate if you could refere me to such guide to set up any of the high-performance python webservers. Thanks in advance for your hints.
Deploying pylons apps is very easy on uWSGI. Simply add this section to your deployment.ini
[uwsgi]
master = 1
processes = 4
socket = :3031
home =
<venv>
Substitute
<venv>
with the full path of your virtualenv and eventually change the socket port to whatever you want/needNow go to nginx.conf and modify it to something like this:
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
}
Obviously set the uwsgi_pass to the right port of the uWSGI socket
Now start uwsgi
uwsgi --ini-paste
<path>
Where
<path>
is the full path of the deployment.ini fileIf you are on a big server you can increse the number of processes too