Bad Django / uwsgi performance

前端 未结 3 1832
独厮守ぢ
独厮守ぢ 2021-01-29 17:27

I am running a django app with nginx & uwsgi. Here\'s how i run uwsgi:

sudo uwsgi -b 25000 --chdir=/www/python/apps/pyapp --module=wsgi:application --env DJA         


        
3条回答
  •  爱一瞬间的悲伤
    2021-01-29 18:01

    Adding more workers and getting less r/s means that your request "is pure CPU" and there is no IO waits that another worker can use to serve another request.

    If you want to scale you will need to use another server with more (or faster) cpu's.

    However this is a synthetic test, the number of r/s you get are the upper bound for the exact request that you are testing, once on production there are many more variables that can affect the performance.

提交回复
热议问题