Skip to content

Commit 4c0619f

Browse files
committed
ref(controller): scale workers with CPU cores, as recommended
See http://docs.gunicorn.org/en/latest/settings.html#workers
1 parent 601eac7 commit 4c0619f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

deis/gconf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import multiprocessing
2+
13
bind = '0.0.0.0'
2-
workers = 8
4+
workers = multiprocessing.cpu_count() * 2 + 1
35
proc_name = 'deis-controller'
46
timeout = 1200
57
pidfile = '/tmp/gunicorn.pid'

0 commit comments

Comments
 (0)