Difference between workers and processes in uwsgi

好久不见. 提交于 2019-12-04 15:16:44

问题


I am trying to be careful and understand every setting in my nginx configuration. I have seen a configuration example that has something like:

workers = 8
processes = 10

But the uWSGI docs do not seem to differentiate. Are they synonyms? If so, does that make this configuration incorrect?


回答1:


workers and processes are indeed synonyms and the same thing. (I'm sure you've seen the configuration option documentation for them both)

That configuration is very incorrect and could actually have no effect as a result. (I just found out that by having the cheaper option twice in one of my ini files neither was being picked up - but I don't know if this is the case with workers/processes).



来源:https://stackoverflow.com/questions/17053426/difference-between-workers-and-processes-in-uwsgi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!