Difference between workers and processes in uwsgi

2019-03-22 19:06发布

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?

标签: uwsgi
1条回答
你好瞎i
2楼-- · 2019-03-22 19:45

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).

查看更多
登录 后发表回答