简体   繁体   English

在皇帝模式下运行uWSGI,但会降低计算机速度

[英]Running uWSGI In emperor mode but slows down computer

I've been trying to run my applications with emperor mode and got it working but the problem is the moment i run emperor mode my computer slows down like crazy and i can't do anything. 我一直在尝试以皇帝模式运行我的应用程序并使它正常工作,但问题是我以皇帝模式运行的那一刻,我的计算机速度像疯了一样,我无法执行任何操作。 My configuration files code for both applications are similar. 我的两个应用程序的配置文件代码都相似。

[uwsgi]
module = Restful
chdir = path

processes = 2

http-socket = :5001
chmod-socket = 660
vacuum = true

die-on-term = true

[uwsgi]
module = Flaskapp
chdir = /home/muba/PycharmProjects/Work/
wsgi-file = Work/wsgi.py
processes = 2

http-socket = :5000
chmod-socket = 660
vacuum = true

die-on-term = true

My code i run is 我运行的代码是

uwsgi --emperor vassals --uid http --gid http --master

It works and i see that both my apps are running at the same time but a few seconds later my laptop slows down. 它可以正常工作,我看到两个应用程序同时运行,但几秒钟后,笔记本电脑速度变慢。 Anything I'm doing wrong? 我做错了什么吗? it was working the first time i tried then after that it slowed down. 它是我第一次尝试的方法,然后就变慢了。 I also made an emperor.ini file in my vassals. 我还在封臣中制作了一个emperor.ini文件。

Wait you have an emperor.ini file? 等待您有一个emperor.ini文件? If it has configuration similar to what you have put in your uwsgi code, then it's probably running it twice and slowing down your computer? 如果它的配置与您在uwsgi代码中输入的配置相似,那么它可能会运行两次并降低计算机速度?

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

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