init commit

This commit is contained in:
2023-08-10 12:27:18 +08:00
commit 56f93165ba
21 changed files with 457 additions and 0 deletions

22
gunicorn.conf.py Normal file
View File

@@ -0,0 +1,22 @@
import multiprocessing
from gevent import monkey
monkey.patch_all()
bind = "0.0.0.0:5000"
worker_class = 'gevent'
# 设置最大并发量
daemon = False
debug = False
worker_connections = 2000
workers = multiprocessing.cpu_count() * 2 + 1
# 指定每个工作者的线程数
threads = 10
# pidfile = "/var/run/gunicorn.pid"
# accesslog = '/var/log/gunicorn_access.log'
# errorlog = '/var/log/gunicorn_error.log'
# 设置日志记录水平
loglevel = 'warning'