Skip to content

Commit 5aee081

Browse files
authored
Merge pull request #12 from Boanerges1996/fix/gunicorn-worker-config
2 parents 719cd6b + f598d29 commit 5aee081

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

gunicorn.conf.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)