From c0fbf4dd0c54ef223e8cb2e977d23a97de84b272 Mon Sep 17 00:00:00 2001
From: Galonza Peter
Date: Sun, 24 Oct 2021 23:41:06 +0300
Subject: [PATCH] optimized performance
# Conflicts:
# src/gunicorn.conf.py
---
src/gunicorn.conf.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gunicorn.conf.py b/src/gunicorn.conf.py
index 5ff8f4d..047ec33 100644
--- a/src/gunicorn.conf.py
+++ b/src/gunicorn.conf.py
@@ -1,6 +1,11 @@
+import multiprocessing
import dashboard
app_host, app_port = dashboard.get_host_bind()
+
+worker_class = 'gthread'
+workers = multiprocessing.cpu_count() * 2 + 1
+threads = 2
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'