We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a87f08 + 30193c5 commit 88c9357Copy full SHA for 88c9357
1 file changed
rootfs/deis/gunicorn/config.py
@@ -10,11 +10,7 @@
10
if workers < 1:
11
raise ValueError()
12
except (NameError, ValueError):
13
- import multiprocessing
14
- try:
15
- workers = multiprocessing.cpu_count() * 2 + 1
16
- except NotImplementedError:
17
- workers = 8
+ workers = (os.cpu_count() or 4) * 2 + 1
18
19
pythonpath = dirname(dirname(dirname(realpath(__file__))))
20
timeout = 1200
0 commit comments