uwsgi配置cheaper模式进行自动弹性

[uwsgi]
socket = 0.0.0.0:8080
protocol = http
master = true
hara-kiri = 60
chdir = /home/test/project
manage-script-name = true
mount = /home/test/project/project/wsgi.py
processes = 4
threads = 40
pidfile = /usr/local/bin/uwsgi.pid
daemonize =/home/test/logs/uwsgi.log
buffer-size = 32768
listen = 1024
reload-on-rss = 256
cheaper = 1
idle = 30
die-on-term = true
py-tracebacker = /tmp/tbsocket.
log-maxsize = 50000000

 

posted @ 2018-11-09 15:20  Small_office  阅读(837)  评论(0编辑  收藏  举报