Figuring out with Gunicorn...

This commit is contained in:
Donald Zou
2024-06-18 03:40:25 +08:00
parent 327d66bb80
commit 9baefec541
4 changed files with 24 additions and 125 deletions

View File

@@ -1,11 +1,11 @@
import multiprocessing
import dashboard
app_host, app_port = dashboard.get_host_bind()
app_host, app_port = dashboard.gunicornConfig()
worker_class = 'gthread'
workers = multiprocessing.cpu_count() * 2 + 1
threads = 4
threads = 2
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'