Adam Gandelman 179d723747 Allow gunicorn workers 5 min. to process requests
Config updates can be time consuming, especially in testing environments
that utilize virt-on-virt.  Rather than timing out workers that are taking
a long time to process an update, bump the timeout to 5 minutes and allow
the requesting orchestrator to time out its request at shorter deadlines
instead.

Change-Id: Ibee73d7a43864da645b5d7198a5df2f2bf936ea9
2016-03-29 11:03:29 -07:00

13 lines
309 B
Django/Jinja

import multiprocessing
bind = '[::]:5000'
workers = workers = multiprocessing.cpu_count() * 2 + 1
timeout = 300
backlog = 2048
worker_class ="sync"
debug = False
daemon = True
pidfile = "/var/run/gunicorn.pid"
errorlog = "/var/log/astara/gunicorn_error.log"
accesslog = "/var/log/astara/gunicorn_access.log"