From 2667cdb26cf564954145e9330085eaa136486635 Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:05:55 +0000 Subject: [PATCH] lower workers on smaller instances --- api/tacticalrmm/core/management/commands/create_uwsgi_conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tacticalrmm/core/management/commands/create_uwsgi_conf.py b/api/tacticalrmm/core/management/commands/create_uwsgi_conf.py index 3ac680b7..bd337539 100644 --- a/api/tacticalrmm/core/management/commands/create_uwsgi_conf.py +++ b/api/tacticalrmm/core/management/commands/create_uwsgi_conf.py @@ -24,8 +24,8 @@ class Command(BaseCommand): try: ram = math.ceil(psutil.virtual_memory().total / (1024**3)) if ram <= 2: - max_requests = 30 - max_workers = 10 + max_requests = 15 + max_workers = 6 elif ram <= 4: max_requests = 75 max_workers = 20