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

This commit is contained in:
BryantHe 2023-10-24 18:15:32 +08:00
parent 7049f3d008
commit c8531f00f2
1 changed files with 1 additions and 2 deletions

View File

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