Skip to content

Commit 083e3af

Browse files
committed
Adjust cpu count
1 parent f95f06d commit 083e3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checker/src/gunicorn.conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import multiprocessing
22

33
worker_class = "uvicorn.workers.UvicornWorker"
4-
workers = min(4, multiprocessing.cpu_count())
4+
workers = max(1, 2 * (multiprocessing.cpu_count() - 1))
55
bind = "0.0.0.0:8000"
66
timeout = 90
77
keepalive = 3600

0 commit comments

Comments
 (0)