Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Please explain pros/cons when using the different Nginx WSGI interfaces? Please explain in detail what differentiates each configuration? Which configuration should scale the best?

If relevant, what are you running right now, and why?

Some techniques I've seen, but please tell me if I've missed any:

share|improve this question

migrated from stackoverflow.com Oct 10 '12 at 11:21

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 24 down vote accepted

I prefer uwsgi because it's super configurable and has tons of options.

From the benchmarks I've done it has the best performance/memory usage. It's very flexible and can probably be configured precisely to suit your needs. I use uwsgi's emperor mode to host multiple apps. It will scan a given directory for config files and launch/manage all applications it finds config files for. You can remove the config to kill the app, touch it to restart, etc. It's probably the quickest and easiest way to go about multiple-app hosting. I have posted the details of my config on another topic: http://stackoverflow.com/questions/5906197/what-is-the-most-common-way-to-configure-static-files-in-debug-and-production-for/5906206#5906206.

Generally your application will be the bottleneck, not the wsgi server! But hey, if you want an even more performant WSGI server, you might want to look at meinheld or bjoern. Both are extremely lightweight and fast, built on fast event loops, picoev, and libev respectively, and both use the same high performance HTTP parser as node.js.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.