uwsgi: make luci-webui single threaded and log more
authorPeter Stadler <redacted>
Mon, 4 May 2020 19:57:43 +0000 (21:57 +0200)
committerPeter Stadler <redacted>
Mon, 4 May 2020 19:57:43 +0000 (21:57 +0200)
More threads can lead to a problem if a luci-app makes a fork
(e.g. for executing a command). Parallelism is still achieved
by using `processes = 3`.
Make the log more verbose by filtering only standard messages
for start/stop/reload out (leaving one line each).

Signed-off-by: Peter Stadler <redacted>
net/uwsgi/Makefile
net/uwsgi/files-luci-support/luci-webui.ini

index cc9f2f204779df27b9b0177b34c5efafb61d145d..97152267faf0c02193c830112f563b083ba6b1d4 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uwsgi
 PKG_VERSION:=2.0.18
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
index 307d0346ed052fe33da5ae846bafd0b0761e5d27..eb984b3126166c2b93edbd05ec10a2d904ee9aa5 100644 (file)
@@ -21,11 +21,12 @@ socket-timeout = 120
 thunder-lock = true
 plugin = syslog
 logger = luci syslog:uwsgi-luci
-log-route = luci luci:
+; the regular expression leaves for successful de/activation only one line each:
+log-route = luci ^(?!... Starting uWSGI |compiled with version: |os: Linux|nodename: |machine: |clock source: |pcre jit |detected number of CPU cores: |current working directory: |detected binary path: |uWSGI running as root, you can use |... WARNING: you are running uWSGI as root |chdir.. to |your processes number limit is |limiting address space of processes...|your process address space limit is |your memory page size is |detected max file descriptor number: |lock engine: |thunder lock: |uwsgi socket |your server socket listen backlog is limited to |your mercy for graceful operations on workers is |mapped .* bytes |... Operational MODE: |initialized CGI path: |... no app loaded. going in full dynamic mode ...|... uWSGI is running in multiple interpreter mode ...|spawned uWSGI worker |announcing my loyalty to the Emperor...|workers have been inactive for more than |SIGINT/SIGQUIT received...killing workers...|worker .* buried |goodbye to uWSGI.|...gracefully killing workers...|Gracefully killing worker|worker .* killed successfully)
 disable-logging = true
 req-logger = syslog:uwsgi-luci
 log-format=%(method) %(uri) => return %(status) (%(rsize) bytes in %(msecs) ms)
-threads = 3
+threads = 1
 processes = 3
 cheaper-algo = spare
 cheaper = 1
git clone https://git.99rst.org/PROJECT