uWSGI master如何与processes/workers通信?
How uWSGI master communicates with processes/workers?
当我们执行以下命令时
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如何掌握与worker的沟通? (信号?)
底层机制是什么?
通信和事件管理都由同一个子系统——uWSGI 信号框架管理。
https://uwsgi-docs.readthedocs.io/en/latest/Signals.html
当我们执行以下命令时
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如何掌握与worker的沟通? (信号?) 底层机制是什么?
通信和事件管理都由同一个子系统——uWSGI 信号框架管理。 https://uwsgi-docs.readthedocs.io/en/latest/Signals.html