最近做 python server 的选型, gunicorn+meinheld/gevent 都不错,但在 nginx 下性能、错误率掉得有点厉害,远不如 nginx+uWSGI+gevent 稳定,请教下如何部署?
gunicorn -b :18003 -k egg:meinheld#gunicorn_worker -w 9 mybottle:app #or gunicorn -b :18003 -k gevent_pywsgi -w 9 mybottle:app
nginx.conf
server { listen 8003; location / { proxy_pass http://127.0.0.1:18003; } }
谢谢!
![]() | 1 ryd994 2017-04-25 21:53:53 +08:00 via Android Nginx 后面挂普通 gunicorn 呢? gunicorn 最初的设计就是这样 |
![]() | 2 junnplus 2017-04-25 22:20:19 +08:00 没有说明机子配置就直接 -w 9 合适么 |