Last active
September 11, 2019 13:44
-
-
Save lwzm/c6b4887ad89bf46333aa692f2eeadd2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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