From 3b0332e9ecd4cea114b9ddb44a5d98fdb3ace955 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:48:15 +1300 Subject: [PATCH] one worker, lots of threads. reduces ram usage --- gunicorn.conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 40ae2ebf..a9fd894f 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,7 +1,7 @@ import multiprocessing -workers = multiprocessing.cpu_count() * 2 + 1 -threads = multiprocessing.cpu_count() * 2 + 1 +workers = 1 +threads = multiprocessing.cpu_count() * 4 + 1 worker_tmp_dir = '/dev/shm'