From cc1b3a5ea3f1e8000837a673a014ea772bd8e4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Wed, 8 Mar 2023 15:58:14 +0100 Subject: [PATCH] uwsgi: improve configuration Changes uWSGI configuration to add vacuuming of generated files and sockets, similarly to what we did for the CERN Open Data service. See and . --- CHANGES.rst | 1 + helm/reana/templates/uwsgi-config.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index cca69ce3..e34e0612 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,7 @@ Version 0.9.1 (UNRELEASED) - Adds support for Kubernetes clusters 1.26. - Adds new configuration option ``ingress.extra`` to define extra Ingress resources, in order to support redirecting HTTP requests to HTTPS with traefik v2 version. - Adds new configuration option ``ingress.tls.hosts`` to define hosts that are present in the TLS certificate, in order to support cert-manager's automatic creation of certificates. + - Changes uWSGI configuration to add vacuuming of generated files and sockets. - Fixes uWSGI memory consumption on systems with very high allowed number of open files. Version 0.9.0 (2023-01-26) diff --git a/helm/reana/templates/uwsgi-config.yaml b/helm/reana/templates/uwsgi-config.yaml index a0ccffd4..528c7b75 100644 --- a/helm/reana/templates/uwsgi-config.yaml +++ b/helm/reana/templates/uwsgi-config.yaml @@ -13,8 +13,10 @@ data: master = true processes = {{ .Values.components.reana_server.uwsgi.processes }} threads = {{ .Values.components.reana_server.uwsgi.threads }} + enable-threads = true single-interpreter = true need-app = true + vacuum = true wsgi-disable-file-wrapper = true auto-procname = true