Skip to content

Instantly share code, notes, and snippets.

@lwzm
Last active September 11, 2019 13:44
Show Gist options
  • Save lwzm/c6b4887ad89bf46333aa692f2eeadd2a to your computer and use it in GitHub Desktop.
Save lwzm/c6b4887ad89bf46333aa692f2eeadd2a to your computer and use it in GitHub Desktop.
#!/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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment