修改连接数
This commit is contained in:
1 parent
3b31867319
commit
d342bba458
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user