Skip to content

Commit

Permalink
🚀 create gunicorn.conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sebzhao authored Dec 7, 2024
1 parent a584088 commit e264364
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Gunicorn configuration file
import multiprocessing

max_requests = 1000
max_requests_jitter = 50

log_file = "-"

bind = "0.0.0.0:3100"

worker_class = "uvicorn.workers.UvicornWorker"
workers = (multiprocessing.cpu_count() * 2) + 1

0 comments on commit e264364

Please sign in to comment.