init infrait
This commit is contained in:
14
gunicorn_conf.py
Normal file
14
gunicorn_conf.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import multiprocessing
|
||||
|
||||
bind = "0.0.0.0:4545"
|
||||
workers = max(4, multiprocessing.cpu_count() * 2)
|
||||
threads = 4
|
||||
timeout = 60
|
||||
graceful_timeout = 30
|
||||
keepalive = 5
|
||||
worker_tmp_dir = "/dev/shm"
|
||||
max_requests = 1000
|
||||
max_requests_jitter = 100
|
||||
accesslog = "-"
|
||||
errorlog = "-"
|
||||
loglevel = "info"
|
||||
Reference in New Issue
Block a user