gunicorn_config.py
378 Bytes
import multiprocessing
preload_app = True
bind = '0.0.0.0:21182'
#workers = multiprocessing.cpu_count()
workers = 5
#threads = int(2100 / multiprocessing.cpu_count())
backlog = 2048
worker_connections = 1000
worker_class = 'gevent'
#max_requests = int(25000 / multiprocessing.cpu_count())
max_requests = 6000
max_requests_jitter = 2000
timeout = 30
proc_name = 'gunicorn.pid'