!16 [sync] PR-13: Modify uwsgi configuration file fields

From: @openeuler-sync-bot 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
This commit is contained in:
openeuler-ci-bot 2022-12-28 12:42:29 +00:00 committed by Gitee
commit 70df921f06
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,35 @@
From e48ee859dcc753fec77e23c465019f0d1572f36a Mon Sep 17 00:00:00 2001
From: wenxin <shusheng.wen@outlook.com>
Date: Tue, 27 Dec 2022 11:09:06 +0800
Subject: [PATCH] Modify uwsgi configuration file fields
---
aops-vulcanus | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/aops-vulcanus b/aops-vulcanus
index 78a43a8..368c57f 100644
--- a/aops-vulcanus
+++ b/aops-vulcanus
@@ -40,6 +40,8 @@ function create_config_file() {
daemonize=$(get_config "${config_file}" "uwsgi" "daemonize")
http_timeout=$(get_config "${config_file}" "uwsgi" "http-timeout")
harakiri=$(get_config "${config_file}" "uwsgi" "harakiri")
+ processes=$(get_config "${config_file}" "uwsgi" "processes")
+ threads=$(get_config "${config_file}" "uwsgi" "threads")
check_file $daemonize
echo "[INFO] run ${service_name} under path: ${wsgi_file}"
@@ -63,6 +65,9 @@ pidfile=${OUT_PATH}/${service_name}.pid
callable=app
http-timeout=${http_timeout}
harakiri=${harakiri}
+threads=${threads}
+processes=${processes}
+lazy-apps=true
daemonize=${daemonize}" >"${OUT_PATH}"/"${service_name}".ini
chown root: ${OUT_PATH}/"${service_name}".ini
chmod 750 ${OUT_PATH}/"${service_name}".ini
--
Gitee

View File

@ -1,10 +1,11 @@
Name: aops-vulcanus
Version: v1.1.1
Release: 1
Release: 2
Summary: A basic tool libraries of aops, including logging, configure and response, etc.
License: MulanPSL2
URL: https://gitee.com/openeuler/%{name}
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-modify-uwsgi-configuration-file-fields.patch
BuildRequires: python3-setuptools
Requires: python3-concurrent-log-handler python3-xmltodict python3-pyyaml python3-marshmallow >= 3.13.0
@ -28,7 +29,7 @@ tools for aops, it's about aops deploy
%prep
%autosetup -n %{name}-%{version}
%autosetup -n %{name}-%{version} -p1
# build for aops-vulcanus
@ -57,6 +58,9 @@ cp -r scripts %{buildroot}/opt/aops/
%changelog
* Tue Dec 27 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-2
- Modify uwsgi configuration file fields
* Fri Dec 02 2022 wenxin<shusheng.wen@outlook.com> - v1.1.1-1
- update get response