修改连接数

This commit is contained in:
sophie committed 2026-05-16 16:59:09 +08:00
1 parent 3b31867319
commit d342bba458
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -15,7 +15,8 @@ worker_class = "gevent"
# 进程数
# 公式: 2 * CPU核心数 + 1
workers = multiprocessing.cpu_count() * 2 + 1
# workers = multiprocessing.cpu_count() * 2 + 1
min(int(os.getenv("GUNICORN_WORKERS", "9")), multiprocessing.cpu_count() * 2 + 1)
# 每个 Worker 的最大并发连接数
worker_connections = 1000