2021-10-24 23:41:06 +03:00
|
|
|
import multiprocessing
|
2021-10-18 02:24:09 +03:00
|
|
|
import dashboard
|
|
|
|
|
|
|
|
|
|
app_host, app_port = dashboard.get_host_bind()
|
2021-10-24 23:41:06 +03:00
|
|
|
|
|
|
|
|
worker_class = 'gthread'
|
2022-03-04 22:09:01 -05:00
|
|
|
workers = multiprocessing.cpu_count() * 2 + 1
|
2021-10-28 23:16:32 +03:00
|
|
|
threads = 4
|
2021-10-18 02:24:09 +03:00
|
|
|
bind = f"{app_host}:{app_port}"
|
|
|
|
|
daemon = True
|
|
|
|
|
pidfile = './gunicorn.pid'
|