Files
stock/stock-html/gunicorn.conf.py
T

16 lines
313 B
Python

"""Gunicorn 生产环境配置"""
import multiprocessing
bind = "0.0.0.0:3333"
workers = min(multiprocessing.cpu_count() * 2 + 1, 4)
worker_class = "gthread"
threads = 4
timeout = 120
keepalive = 5
max_requests = 1000
max_requests_jitter = 50
accesslog = "-"
errorlog = "-"
loglevel = "info"
preload_app = False