supeng 1 vuosi sitten
vanhempi
commit
c8030c2aba
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      gunicorn.config.py

+ 4 - 0
gunicorn.config.py

@@ -11,6 +11,10 @@ errorlog = os.path.join(log_path, 'error.log')
 
 # workers = 5
 workers = 2 * cpu_count() + 1
+# 线程数
+# threads = cpu_count()
 # 设置工作模式为协程
 worker_class = "gevent"
 bind = "0.0.0.0:5001"
+# 超时时间
+timeout = 120