Skip to content

Commit

Permalink
Calculate n workers
Browse files Browse the repository at this point in the history
  • Loading branch information
GISRedeDev committed Jan 12, 2025
1 parent f0c83f1 commit d96b8eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/gunicorn.config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import multiprocessing

bind = "0.0.0.0:8000"
workers = 5
workers = multiprocessing.cpu_count() * 2 + 1
threads = 2
timeout = 600
max_requests = 1000
Expand Down

0 comments on commit d96b8eb

Please sign in to comment.