uWSGI主人如何与流程/工人沟通?

时间:2018-05-19 13:46:38

标签: python uwsgi

当我们执行以下命令时

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

spawned uWSGI master process (pid: 38968) spawned uWSGI worker 1 (pid: 38969, cores: 1) spawned uWSGI worker 2 (pid: 38970, cores: 1) spawned uWSGI worker 3 (pid: 38971, cores: 1) spawned uWSGI worker 4 (pid: 38972, cores: 1)

uWSGI如何与工人进行沟通? (信号?) 什么是潜在的机制?

1 个答案:

答案 0 :(得分:0)

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