aops-zeus/0003-add-gevent-config-item-for-uwsgi.patch
rabbitali 51dc824995 add gevent config item for uwsgi
(cherry picked from commit 15ddecb551b8af0db4270dc718a65d5772b60956)
2023-05-08 10:44:17 +08:00

28 lines
781 B
Diff

From 759e4a40e09e96b7d71b9537dbcf3e71d407389b Mon Sep 17 00:00:00 2001
From: rabbitali <shusheng.wen@outlook.com>
Date: Fri, 21 Apr 2023 14:32:31 +0800
Subject: [PATCH] add gevent config item for uwsgi
---
conf/zeus.ini | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/conf/zeus.ini b/conf/zeus.ini
index d794001..15b3f47 100644
--- a/conf/zeus.ini
+++ b/conf/zeus.ini
@@ -8,7 +8,9 @@ daemonize=/var/log/aops/uwsgi/zeus.log
http-timeout=600
harakiri=600
processes=2
-threads=4
+; if gevent is used in the project, you should set gevent item here, its value is the maximum number of coroutine
+; concurrency. gevent and threads are conflicting items, and gevent is read with a higher priority than threads.
+gevent=100
[mysql]
ip=127.0.0.1
--
Gitee