supeng 1 year ago
parent
commit
c2158098da
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gunicorn.config.py

+ 2 - 0
gunicorn.config.py

@@ -11,6 +11,8 @@ errorlog = os.path.join(log_path, 'error.log')
 
 # workers = 5
 workers = 2 * cpu_count() + 1
+# 线程数 20240223 单线程改为多线程 解决服务挂掉问题
+threads = cpu_count()
 # 设置工作模式为协程
 worker_class = "gevent"
 bind = "0.0.0.0:5001"