简体   繁体   English

uWSGI是否可以同时使用便宜和皇帝

[英]Is it possible to use both cheaper and emperor with uWSGI

I need to host multiple Django sites (quite a lot of sites actually) and currently I am using Apache + mod_wsgi but I want to switch to uWSGI . 我需要托管多个Django站点(实际上很多站点),当前我正在使用Apache + mod_wsgi但我想切换到uWSGI

One of the nice features of uWSGI is cheaper mode that spawns processes as needed and shuts them down as needed as well. uWSGI一个不错的功能是cheaper mode ,该cheaper mode可以根据需要生成进程并根据需要将其关闭。 On the other hand, it seems that the way to make it run multiple sites is to use emperor mode . 另一方面,似乎使其运行多个站点的方法是使用emperor mode

Can emperor mode be used together with cheaper subsystem? emperor mode可以和cheaper子系统一起使用吗? Are there any quirks/problems I should be aware of? 我应该注意什么怪癖/问题吗? Has anyone ever done this? 有人做过吗?

There are no problems as each "vassal" can be configured with its special cheaper mode. 没问题,因为每个“附庸”都可以使用其特殊的便宜模式进行配置。 In this way you can have QoS for your customers. 这样,您可以为客户提供QoS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM