V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gaoyadianta
V2EX  ›  Python

flask_socketio+gunicorn 的方案 worker 只能设置为 1,那是不是还得再加个 nginx

  •  
  •   gaoyadianta · 2019-10-09 20:39:26 +08:00 · 2279 次点击
    这是一个创建于 1632 天前的主题,其中的信息可能已经有所发展或是发生改变。
    rt,flask_socketio 的文档指出,使用 gunicorn 的时候,worker 只能设置为 1,那我需要使用 websocket 又想提高系统的并发性能,是不是只能再前边加 nginx
    蛋疼...
    5 条回复    2019-10-24 14:20:39 +08:00
    gaoyadianta
        1
    gaoyadianta  
    OP
       2019-10-10 10:33:16 +08:00
    请求大佬关注
    Latin
        2
    Latin  
       2019-10-11 15:40:30 +08:00
    k8s
    gaoyadianta
        3
    gaoyadianta  
    OP
       2019-10-12 09:44:27 +08:00
    @Latin 刚开始做 web 相关的东西,能不能稍微详细介绍下
    aniulee
        4
    aniulee  
       2019-10-16 10:37:06 +08:00
    是的,再加一层 nginx 即可
    kayseen
        5
    kayseen  
       2019-10-24 14:20:39 +08:00
    最近看 socket 一头雾水, 能麻烦推荐下参考资料吗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1010 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.