liqian 1 år sedan
förälder
incheckning
f88adadf8e
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      gunicorn.config.py

+ 2 - 1
gunicorn.config.py

@@ -10,7 +10,8 @@ accesslog = os.path.join(log_path, 'access.log')
 errorlog = os.path.join(log_path, 'error.log')
 
 # workers = 5
-workers = 2 * cpu_count() + 1
+# workers = 2 * cpu_count() + 1
+workers = 9
 # 设置工作模式为协程
 worker_class = "gevent"
 bind = "0.0.0.0:5001"