我必须安装 uWSGI Cheaper 算法吗?
Do i have to install uWSGI Cheaper algorithms?
我使用的版本:
uWSGI:2.0.19.1(64 位)
os: Linux-3.10.0-1062.4.1.el7.x86_64
我目前想用 uWSGI 更便宜的子系统设置我的 vassal 应用程序来处理 workers 等
我决定使用“spare2”算法,就像在 uWSGI 文档中解释的那样。
https://uwsgi-docs.readthedocs.io/en/latest/Cheaper.html?highlight=spare2#spare2-cheaper-algorithm
但是我在我的应用程序日志中收到此消息
unable to find requested cheaper algorithm, falling back to spare
所以我用
查看了我的 uWSGI 应用程序
uwsgi --cheaper-algos-list
*** uWSGI loaded cheaper algorithms ***
busyness
spare
backlog
manual
--- end of cheaper algorithms list ---
而且似乎没有“spare2”算法。在文档中,uWSGI 的变更日志中,如果“spare2”可能被替换或需要一些特殊的安装,我找不到任何提示。
问题:
“spare2”算法发生了什么?我是否遗漏了 uwsgi 先决条件中的某些内容?我必须将其作为插件下载吗?我必须安装 uWSGI 更便宜的算法吗?
是的,我 运行 遇到了同样的问题,调试了几个小时为什么 spare2
的行为与 spare
完全一样,却没有注意到日志行说 spare2
是不可用。
无论如何,是的,uwsgi
的 PyPI 版本是 2.0.x
,而 master
中的文档和 github 代码是 2.1.x
。根据我的阅读,这种差异已经存在 quite some time.
spare2
的作者好心地将插件移植到 2.0.x
:https://github.com/KLab/uwsgi-cheaper-spare2。
我倾向于使用 built-in busyness
,但是,在 2.1.x
中情况会反转:spare2
是 built-in 和 busyness
是 plug-in.
我使用的版本:
uWSGI:2.0.19.1(64 位)
os: Linux-3.10.0-1062.4.1.el7.x86_64
我目前想用 uWSGI 更便宜的子系统设置我的 vassal 应用程序来处理 workers 等
我决定使用“spare2”算法,就像在 uWSGI 文档中解释的那样。
https://uwsgi-docs.readthedocs.io/en/latest/Cheaper.html?highlight=spare2#spare2-cheaper-algorithm
但是我在我的应用程序日志中收到此消息
unable to find requested cheaper algorithm, falling back to spare
所以我用
查看了我的 uWSGI 应用程序uwsgi --cheaper-algos-list
*** uWSGI loaded cheaper algorithms ***
busyness
spare
backlog
manual
--- end of cheaper algorithms list ---
而且似乎没有“spare2”算法。在文档中,uWSGI 的变更日志中,如果“spare2”可能被替换或需要一些特殊的安装,我找不到任何提示。
问题:
“spare2”算法发生了什么?我是否遗漏了 uwsgi 先决条件中的某些内容?我必须将其作为插件下载吗?我必须安装 uWSGI 更便宜的算法吗?
是的,我 运行 遇到了同样的问题,调试了几个小时为什么 spare2
的行为与 spare
完全一样,却没有注意到日志行说 spare2
是不可用。
无论如何,是的,uwsgi
的 PyPI 版本是 2.0.x
,而 master
中的文档和 github 代码是 2.1.x
。根据我的阅读,这种差异已经存在 quite some time.
spare2
的作者好心地将插件移植到 2.0.x
:https://github.com/KLab/uwsgi-cheaper-spare2。
我倾向于使用 built-in busyness
,但是,在 2.1.x
中情况会反转:spare2
是 built-in 和 busyness
是 plug-in.