gconfig.py 366 B

1234567891011121314151617
  1. # 新建py配置文件gconfig.py
  2. # 本项目中gunicorn开启多个workers时会影响运行速度
  3. # gunicorn -c gconfig.py E2CC_server:app test
  4. bind = "0.0.0.0:10116"
  5. workers = 3
  6. threads = 12
  7. timeout = 600
  8. worker_class = "gevent" # 'sync'
  9. daemon = True
  10. # max_requests = 50000
  11. # max_requests_jitter = 2
  12. # debug = True
  13. # 修改代码时自动重启
  14. reload = True