Skip to content

Commit 4abe426

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

controller/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)