From df006baf7a437595307a5a8e8b2b5ec22b63ba31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Ba=C3=B1ados=20Schwerter?= Date: Mon, 26 Aug 2024 17:36:07 +0000 Subject: [PATCH] Config updates to UWSGI --- src/morphodict/site/uwsgi.ini | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/morphodict/site/uwsgi.ini b/src/morphodict/site/uwsgi.ini index 9829f0042..085b59fe0 100644 --- a/src/morphodict/site/uwsgi.ini +++ b/src/morphodict/site/uwsgi.ini @@ -12,7 +12,7 @@ master = true # How I decided the initial settings (2020-03-11): # 2 * #logical-cores + 1 # altlab-itw has 2 logical cores (😭😭😭) -processes = 5 +processes = 7 # This is the number of interpreters that uwsgi juggles WITHIN a single process. # I have no idea how this affects things. threads = 2 @@ -42,4 +42,13 @@ hook-post-app = print:Application loaded! hook-accepting-once = exec:echo uWSGI worker ready to accept requests! pid: $PPID # To know how much ram we are using -memory-report = true \ No newline at end of file +memory-report = true + +listen = 2048 +max-requests = 4096 + +# These two are intended to avoid issues when requests take too long, which happens some times. +http-timeout = 60 +harakiri = 70 + +logto = /var/log/uwsgi.log