How would I configure Nginx and Gunicorn to be optimized/scalable?
-
Being nginx is a compiled and cpu-optimized binary whereas gunicorn uses greenlets and is bytecode, will having only one instance of gunicorn running be a bottleneck in a reverse proxy configuration? Architecturally speaking, nginx can handle more resources than gunicorn can during a reverse proxy as nginx will simply pass connections to the one running gunicorn instance. The bulk of the work will be within the WSGI app. What is the preferred method of optimization? Should I have two instances of gunicorn running and configure nginx to distribute the load in a round robin approach?
-
Answer:
To start with NGINX is not a threaded web server. It uses the asynchronous model. The first thing to do is make sure you are sure what this means, how it helps with better using of system resources and then maybe refine your question. There is more than enough information on the www to discuss NGINX performance and how it architecturally stands up against other architectures.
Dave Kierans at Quora Visit the source
Related Q & A:
- How Do I Configure SQL Server 2005 Backend?Best solution by Server Fault
- How do I configure a controller bean?Best solution by Stack Overflow
- How can I do nginx rewrite?Best solution by Server Fault
- How do I configure Yahoo to run through Outlook Express?Best solution by Yahoo! Answers
- How can I configure Outlook Express or Microsoft Express with yahoo mail?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.