From 15ddecb551b8af0db4270dc718a65d5772b60956 Mon Sep 17 00:00:00 2001 From: rabbitali Date: Mon, 8 May 2023 09:52:31 +0800 Subject: [PATCH] add gevent config item for uwsgi --- 0003-add-gevent-config-item-for-uwsgi.patch | 27 +++++++++++++++++++++ aops-zeus.spec | 6 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0003-add-gevent-config-item-for-uwsgi.patch 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 0000000..f8e789a --- /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 1591883..c744681 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 -- Gitee