python - uWSGI master 如何与进程/worker 通信?

标签 python uwsgi

当我们执行以下命令时

uwsgi --master --worker 4 --http-socket 0.0.0.0:8001 --wsgi-file ./examples/flaskpost.py

生成 uWSGI 主进程(pid:38968) 生成 uWSGI worker 1(pid:38969,核心数:1) 生成 uWSGI worker 2 (pid: 38970, cores: 1) 生成 uWSGI worker 3 (pid: 38971, cores: 1) 生成 uWSGI worker 4(pid:38972,核心数:1)

uWSGI如何掌握与worker的沟通? (信号?) 底层机制是什么?

最佳答案

通信和事件管理都由同一个子系统——uWSGI 信号框架管理。 https://uwsgi-docs.readthedocs.io/en/latest/Signals.html

关于python - uWSGI master 如何与进程/worker 通信?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50425959/

相关文章:

python - Django 和 MySQL - 无法打开数据库文件

python - time.gmtime() 在armhf平台上导致OverflowError

python-requests 发出 GET 而不是 POST 请求

python - 尝试用 Python 解决 Monty Hall 问题

Python MySQLdb 模块 : can you insert or update without calling string format?

python执行linux shell,只返回一行

python - 与 uWSGI 一起使用时,模块级变量是否安全?

python - Django + uwsgi + nginx + CentOS 7 : connection refused on 8001 port

python - 计算量大的站点的最佳服务器配置

python - 我可以使用 uWSGI Emperor 来管理后台进程吗?