[deleted]
Yeah, I was using Supervisord before this, but was having some problems with it leaving zombie uwsgi processes around (for sites that needed multiple workers). While looking for an alternative, I came across Emperor. So far it's been great.
Multiple Django and Flask Sites with Nginx and uWSGI Emperor
11–20 of 29 posts
Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#12Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#13Are there any updated benchmarks/feature comparisons between nginx/uWSGI vs. nginx/gunicorn out there?
I currently run DUNG (nginx/gunicorn), perhaps I will run nginx/uWSGI first and compare performance. I will ping you if I get around to it.
Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#14Earlier quoted context omitted.
The web server doesn't matter. Your app is what will be slow.
Personally, I would like to know if this setup is available using gunicorn.
Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#15Are there any updated benchmarks/feature comparisons between nginx/uWSGI vs. nginx/gunicorn out there?
Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#16[deleted]
Yeah, I was using Supervisord before this, but was having some problems with it leaving zombie uwsgi processes around (for sites that needed multiple workers). While looking for an alternative, I came across Emperor. So far it's been great.
Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#17Are there any updated benchmarks/feature comparisons between nginx/uWSGI vs. nginx/gunicorn out there?
The great thing about uWSGI/Nginx over Gunicorn/Nginx is that Nginx speaks the uwsi protocol natively[2], whereas with Gunicorn Nginx acts as a proxy.
Also, in my experience (2 years with gunicorn, 1 with uwsgi in prod), uwsgi is more stable, uses less memory, has better management and configuration tools and even lets you run multiple Python apps under the same intepreter (multitenancy) [3].
[1] http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi
[2] http://wiki.nginx.org/HttpUwsgiModule
[3] http://projects.unbit.it/uwsgi/wiki/TipsAndTricks
(Edit: formatting)
Re: Multiple Django and Flask Sites with Nginx and uWSGI Emperor
#18This is my favorite stack too. I usually use supervisord to handle uwsgi processes but this looks much more debian/ubuntu-like. Thanks for the write up. I like to think I am pretty experienced with Django/Python but it's ALWAYS fun to learn new things. Especially when sometimes it feels like a lot of the innovation and new stuff is occurring elsewhere (cough node)
Don't worry much about node, Twisted still beats it for async workloads and PyPI is still much bigger than npm.