lwzm
8/2/2019 - 6:30 AM

gunicorn.py

#!/usr/bin/env python3

bind = '0.0.0.0:8000'
workers = 4
keepalive = 60
timeout = 600
#max_requests = 1000
worker_class = 'tornado'
worker_class = 'meinheld.gmeinheld.MeinheldWorker'
worker_class = 'gevent'
worker_class = 'sync'

#accesslog = 'a.log'
access_log_format = '%(t)s %(h)s "%(r)s" %(s)s %(b)s %(D)s "%(a)s"'

def on_starting(server):
    print('on_starting', server)

def child_exit(server, worker):
    print('child_exit', server, worker)