We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0619f commit 2771e2cCopy full SHA for 2771e2c
2 files changed
conf.d/gconf.toml
@@ -0,0 +1,10 @@
1
+[template]
2
+src = "gconf.py"
3
+dest = "/app/deis/gconf.py"
4
+uid = 1000
5
+gid = 1000
6
+mode = "0640"
7
+keys = [
8
+ "/deis/controller",
9
+]
10
+reload_cmd = "/app/bin/reload"
deis/gconf.py templates/gconf.pydeis/gconf.py renamed to templates/gconf.py
@@ -1,7 +1,12 @@
-import multiprocessing
-
bind = '0.0.0.0'
-workers = multiprocessing.cpu_count() * 2 + 1
+try:
+ workers = int({{ if exists "/deis/controller/workers" }}{{ getv "/deis/controller/workers" }}{{ else }}"not set"{{end}})
+except (NameError, ValueError):
+ import multiprocessing
+ try:
+ workers = multiprocessing.cpu_count() * 2 + 1
+ except NotImplementedError:
+ workers = 8
proc_name = 'deis-controller'
11
timeout = 1200
12
pidfile = '/tmp/gunicorn.pid'
0 commit comments