Add timeout and workers option for Gunicorn.
Add timeout and workers option for Gunicorn, otherwise long request and multi request won't return. Closes-Bug: #1652861 Change-Id: If289511c2c64ecb7c09ed14e7862174358052f30 Signed-off-by: Andy Yan <yanchao3@lenovo.com>
This commit is contained in:
@@ -45,7 +45,9 @@ class StandaloneApplication(gunicorn.app.base.BaseApplication):
|
||||
def main():
|
||||
options = {
|
||||
'bind': '%s:%s' % (cfg.bind_host, cfg.bind_port),
|
||||
'reload': cfg.debug
|
||||
'reload': cfg.debug,
|
||||
'timeout': cfg.timeout,
|
||||
'workers': cfg.workers
|
||||
}
|
||||
StandaloneApplication(application, options).run()
|
||||
LOG.info(("Valence Server on http://%(host)s:%(port)s"),
|
||||
|
||||
Reference in New Issue
Block a user