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'