gunicorn_conf.py 446 B

123456789101112131415161718192021
  1. import multiprocessing
  2. import sys
  3. _is_pypy = hasattr(sys, 'pypy_version_info')
  4. workers = multiprocessing.cpu_count() * 3
  5. bind = "0.0.0.0:8080"
  6. keepalive = 120
  7. errorlog = '-'
  8. pythonpath = 'hello'
  9. if _is_pypy:
  10. worker_class = "tornado"
  11. else:
  12. worker_class = "meinheld.gmeinheld.MeinheldWorker"
  13. def post_fork(server, worker):
  14. # Disalbe access log
  15. import meinheld.server
  16. meinheld.server.set_access_logger(None)