UWSGI configuration: processes, workers and threads. What's a good configuration for a weak server?

  • 0
    Hello everyone,

    I recently launched a project on vdsk (1 core, 512 mb memory, SDD disk) under Ubuntu. I started testing the site and noticed that with a load of 15 concurrent users, the processor is loaded at 100%. Revised everything that I set up and configured. It seems that the weakest link in this chain is uWSGI. I rummaged through a bunch of documentation on the Internet, but I still could not find an answer to the question, how to successfully configure it for vdsk with my parameters.

    What are the optimal settings for processes, workers and threads to choose? Are there formulas? Or recommendations that I could not find.

    Many thanks for the help.
    Django Anonymous, Apr 13, 2020

  • 1 Answers
  • 0
    Well, you open the top and see who is eating resources. And so the classic 2 workers per core.


    uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow. html here is what you couldn't find.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!