diff --git a/0003-add-gevent-config-item-for-uwsgi.patch b/0003-add-gevent-config-item-for-uwsgi.patch new file mode 100644 index 0000000000000000000000000000000000000000..f8e789a73f595cf53f9fbef587d711a0437b5349 --- /dev/null +++ b/0003-add-gevent-config-item-for-uwsgi.patch @@ -0,0 +1,27 @@ +From 759e4a40e09e96b7d71b9537dbcf3e71d407389b Mon Sep 17 00:00:00 2001 +From: rabbitali +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 + diff --git a/aops-zeus.spec b/aops-zeus.spec index 15918832ecc54de729f36edadc43689132965579..c74468190c942eeb8da63d020b3c38045f7fc6e6 100644 --- a/aops-zeus.spec +++ b/aops-zeus.spec @@ -1,12 +1,13 @@ Name: aops-zeus Version: v1.2.0 -Release: 2 +Release: 3 Summary: A host and user manager service which is the foundation of aops. License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} Source0: %{name}-%{version}.tar.gz Patch0001: 0001-fix-token-is-not-invalidated-after-being-refreshed.patch Patch0002: 0002-update-args-validation-rules-and-update-add-host-by-batch.patch +Patch0003: 0003-add-gevent-config-item-for-uwsgi.patch BuildRequires: python3-setuptools @@ -44,6 +45,9 @@ A host and user manager service which is the foundation of aops. %changelog +* Mon May 08 2023 wenixn - v1.2.0-3 +- add gevent config item for uwsgi + * Thu Apr 27 2023 wenixn - v1.2.0-2 - Fix token is not invalidated after the token was refreshed - update args validation rules for add account and for add host