fix: adjust gunicorn.conf.py
continuous-integration/drone/push Build is failing Details

This commit is contained in:
BryantHe 2023-10-24 18:06:43 +08:00
parent 13b6e10819
commit 2bc93e8fe1
2 changed files with 8 additions and 7 deletions

View File

@ -1,16 +1,16 @@
import multiprocessing
from gevent import monkey
monkey.patch_all()
# from gevent import monkey
# monkey.patch_all()
preload_app = True
bind = "0.0.0.0:5000"
worker_class = 'gevent'
# worker_class = 'gevent'
worker_class = 'egg:meinheld#gunicorn_worker'
# 设置最大并发量
daemon = False
debug = False
worker_connections = 3000
worker_connections = 2000
workers = multiprocessing.cpu_count() * 2 + 1
# 指定每个工作者的线程数

View File

@ -1,2 +1,3 @@
git+https://gitea.bearcatlog.com/BryantStudio/chassis.git@main#egg=chassis[apiflask,nameko]
psutil
meinheld==1.0.2