bind = '0.0.0.0'
workers = 8
proc_name = 'deis-controller'
timeout = 1200
pidfile = '/tmp/gunicorn.pid'
loglevel = 'info'
errorlog = '-'
accesslog = '-'
access_log_format = '%(h)s "%(r)s" %(s)s %(b)s "%(a)s"'


def worker_int(worker):
    """Print a stack trace when a worker receives a SIGINT or SIGQUIT signal."""
    worker.log.warning('worker terminated')
    import traceback
    traceback.print_stack()


def worker_abort(worker):
    """Print a stack trace when a worker receives a SIGABRT signal, generally on timeout."""
    worker.log.warning('worker aborted')
    import traceback
    traceback.print_stack()

@@ -1,8 +1,32 @@
+import multiprocessing%0A%0A
 bind = '
@@ -48,9 +48,43 @@
 s = 
-8
+multiprocessing.cpu_count() * 2 + 1
 %0Apro

scale workers with CPU cores, as recommended