From c8531f00f2e8579834d0d308a54e4b5f274e863b Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 24 Oct 2023 18:15:32 +0800 Subject: [PATCH] fix: adjust gunicorn.conf.py --- gunicorn.conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index ffcb2a0..1f12ee8 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -4,13 +4,12 @@ from gevent import monkey monkey.patch_all() -preload_app = True bind = "0.0.0.0:5000" worker_class = 'gevent' # 设置最大并发量 daemon = False debug = False -worker_connections = 2000 +worker_connections = 3000 workers = multiprocessing.cpu_count() * 2 + 1 # 指定每个工作者的线程数