Skip to content

Commit 26e6dca

Browse files
committed
fix(docker): multiprocess should not be used in docker
1 parent 00446dd commit 26e6dca

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

rootfs/drycc/gunicorn/config.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
import faulthandler
44
faulthandler.enable()
55

6-
76
bind = '0.0.0.0'
8-
try:
9-
workers = int(os.environ.get('GUNICORN_WORKERS', 'not set'))
10-
if workers < 1:
11-
raise ValueError()
12-
except (NameError, ValueError):
13-
workers = (os.cpu_count() or 4) * 4 + 1
7+
workers = 1
8+
threads = os.cpu_count() * 4
149

1510
pythonpath = dirname(dirname(dirname(realpath(__file__))))
1611
timeout = 1200

rootfs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Drycc controller requirements
22
backoff==1.4.3
3-
django==1.11.18
3+
django==1.11.20
44
django-auth-ldap==1.2.15
55
django-cors-middleware==1.3.1
66
django-guardian==1.4.9

0 commit comments

Comments
 (0)