We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 719cd6b + f598d29 commit 5aee081Copy full SHA for 5aee081
1 file changed
gunicorn.conf.py
@@ -0,0 +1,19 @@
1
+import os
2
+import multiprocessing
3
+
4
+workers = int(os.environ.get('GUNICORN_WORKERS', multiprocessing.cpu_count() * 2 + 1))
5
+threads = 2
6
+worker_class = 'gthread'
7
+timeout = 30
8
+graceful_timeout = 30
9
+bind = '0.0.0.0:8081'
10
11
+preload_app = True
12
13
+max_requests = 1000
14
+max_requests_jitter = 50
15
16
+accesslog = '-'
17
+errorlog = '-'
18
19
+worker_tmp_dir = '/dev/shm'
0 commit comments