mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
optimized performance
# Conflicts: # src/gunicorn.conf.py
This commit is contained in:
parent
37b6161075
commit
c0fbf4dd0c
@ -1,6 +1,11 @@
|
|||||||
|
import multiprocessing
|
||||||
import dashboard
|
import dashboard
|
||||||
|
|
||||||
app_host, app_port = dashboard.get_host_bind()
|
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}"
|
bind = f"{app_host}:{app_port}"
|
||||||
daemon = True
|
daemon = True
|
||||||
pidfile = './gunicorn.pid'
|
pidfile = './gunicorn.pid'
|
||||||
|
Loading…
Reference in New Issue
Block a user