什么是 uWSGI 主模式? [英] What is uWSGI master mode?

查看:70
本文介绍了什么是 uWSGI 主模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我只运行一个应用程序,在主模式下运行 uWSGI 有什么好处?主模式是否提供流程管理优势,使其比通过 Upstart 运行更可靠?

What are the benefits of running uWSGI in master mode if I'm only running a single app? Does master mode offer process management benefits that make it more reliable than, say, running via Upstart?

推荐答案

upstart 只是一个进程管理器,uWSGI master 可以访问 worker 的大量内存区域(正好相反)所以它可以进行真正的监控工人的行为,除此之外,它还允许优雅的重新加载、导出统计数据和许多其他事情.从各种角度来看,没有它的运行并不是一个好主意.

upstart is only a process manager, the uWSGI master has access to lot of memory areas of workers (well it is the opposite indeed) so it can make truly monitoring of the behaviour of workers, in addition to this it allows graceful reloading, exports statistics and dozens of other things. Running without it is not a good idea from various point of views.

这篇关于什么是 uWSGI 主模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆