login community faq
3
4

Hi there

I'm using a normal python wsgi application (MoinMoin Wiki) and running at the moment mod_wsgi. For an optimizing and better memory usage... I was stumbled over the uWSGI (WSGI Server / http://projects.unbit.it/uwsgi/wiki) and I discovered that with this I even can limit the amount of used memory (http://projects.unbit.it/uwsgi/wiki/Doc / --limit-as) and have many more options (compared to mod_wsgi). In general this wsgi server seems to use less memory and is even a bit faster then apache2 with mod_wsgi (http://nichol.as/benchmark-of-python-web-servers).

So I'm now wondering if anybody has experience to using uWSGI with webfaction on a shared hosting environment?

I think I will give them a try, looks very interesting and killin' the good old apache is anyway a tasty idea :-) maybe not clearly notify; to run it, you need some http server before... so I would need to go with nginx...

bye Marcel

asked Oct 25 '10 at 10:37

marcel's gravatar image

marcel
47119

edited Oct 25 '10 at 16:48


A step-by-step install guide is now available here:

http://community.webfaction.com/questions/10242/installing-nginx-uwsgi

answered Nov 04 '10 at 03:44

klynton's gravatar image

klynton ♦♦
148128

edited Aug 19 '12 at 03:19

ryans's gravatar image

ryans ♦♦
28411420

I've been experimenting with cherokee and uWSGI in development. Has anyone made any comparisons between nginx and cherokee performance with uWSGI on WebFaction servers? I'm curious if there's any notable difference in memory usage or performance, using the same python application (web2py for example). Of course, it would be best if WebFaction would allow use of nginx's native uWSGI connection feature, to avoid the need for any other web server instance or reverse-proxy step.

(Feb 02 '11 at 22:36) Jared H Jared%20H's gravatar image

Hi,

I've not made any comparisons myself and I don't think I've seen any on the web anywhere. We don't allow access to the frontend nginx since it controls all of the sites for every user on the machine so any misconfiguration would take out all sites, that's why we use the reverse-proxy setup.

(Feb 02 '11 at 22:46) klynton ♦♦ klynton's gravatar image

thanks for providing the walkthrough. I have also had memory problems with Apache.

I found an error with the conf file at step 7. Needed to modify to this:

location / { uwsgi_pass 127.0.0.1:<port>; include uwsgi_params; }

and also manually create the tmp/nginx directory.

Also compile errors when building latest version of uwsgi at step 8. Seems using latest version is unstable so used an older version: http://projects.unbit.it/downloads/uwsgi-0.9.6.5.tar.gz

Now to figure out the wsgi.py part...

Richard

(Nov 10 '11 at 20:42) Baron Baron's gravatar image

I wonder if there is ever a chance that webfaction would add django/uwsgi to the default list of apps installable through the control panel. I don't imagine it would be very hard for them to implement and would give us a very good option for easily setting up an environment.

(Mar 07 '12 at 15:51) joshcartme joshcartme's gravatar image

joshcartme: Normally we do not add new installers unless there is a very high demand for one.

We have thought of adding an nginx/uwsgi installer in the past and did not because there was not enough demand.

I just put a request for second consideration in our internal tracking system and when we have a decision we will post here.

(Mar 07 '12 at 18:54) johns ♦♦ johns's gravatar image

Thanks for the reply and throwing it into the internal tracking system! I would be quite excited.

(Mar 15 '12 at 12:33) joshcartme joshcartme's gravatar image

+1 for a django/uwsgi or django/gunicorn installer

(Sep 10 '12 at 12:59) Michael Bunsen Michael%20Bunsen's gravatar image
showing 5 of 7 show all

Starting from uWSGI 0.9.7 the embedded http server is production ready and does no more use threads but it is fully evented/async. Simply add --http 127.0.0.1:PORT_NUM to uwsgi commandline (and you can remove the -s/--socket option)

answered Mar 29 '11 at 05:55

unbit's gravatar image

unbit
111

Just a note, for now i'm running my moinmoin wiki (python/wsgi) on webfaction with nginx and uwsgi. running uwsgi directly as server (--http) was not working, due some problems with wrong encoded utf-8 urls. anyway nginx (note: configure with only the basic modules, no need for flv stuff & co) and uwsgi (just installed with pip) works seamless and ultra fast :-) my configuration files are available here. In time permits I like to write a short howto.

thanks webfaction for your cool hosting environment. bye Marcel

answered Sep 07 '11 at 07:14

marcel's gravatar image

marcel
47119

edited Sep 07 '11 at 07:15

I'd love to see a howto if you get a chance.

(Jan 25 '12 at 13:46) Michael Bunsen Michael%20Bunsen's gravatar image

Marcel, really, plus one for a how-to on installing moinmoin as you have!

(yesterday) jjon jjon's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×228
×61
×56
×44
×22

Asked: Oct 25 '10 at 10:37

Seen: 5,747 times

Last updated: yesterday

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited