refactor(backend): 迁移基础设施,core,拆分models

This commit is contained in:
sophie committed 2026-06-25 14:01:52 +08:00
1 parent b89d93d738
commit 053ea392f2
61 files changed
+3329 -3268

No files matched your search

+2 -3
View File
@@ -14,9 +14,8 @@ bind = "0.0.0.0:5000"
worker_class = "gevent"
# 进程数
# 公式: 2 * CPU核心数 + 1
# workers = multiprocessing.cpu_count() * 2 + 1
min(int(os.getenv("GUNICORN_WORKERS", "9")), multiprocessing.cpu_count() * 2 + 1)
# 公式: 2 * CPU核心数 + 1;GUNICORN_WORKERS 可覆盖,且不超过 CPU 公式上限
workers = min(int(os.getenv("GUNICORN_WORKERS", "9")), multiprocessing.cpu_count() * 2 + 1)
# 每个 Worker 的最大并发连接数
worker_connections = 1000