Skip to content

Commit

Permalink
Use gunicorn instead of uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKhalili committed Oct 16, 2024
1 parent 1a8dbb6 commit cdc0c49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
workers = 4
worker_class = "uvicorn.workers.UvicornWorker"
bind = "0.0.0.0:8000"
timeout = 180
keepalive = 65
max_requests = 1000
max_requests_jitter = 50
accesslog = "-"
errorlog = "-"
loglevel = "info"
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ decorator==5.1.1
Deprecated==1.2.14
dnspython==2.2.1
driftpy==0.7.90
duckdb==1.1.1
Events==0.5
exceptiongroup==1.0.4
executing==2.1.0
Expand All @@ -44,7 +45,9 @@ frozenlist==1.3.3
ghp-import==2.1.0
gitdb==4.0.11
GitPython==3.1.43
gprof2dot==2024.6.6
grpcio==1.64.1
gunicorn==23.0.0
h11==0.14.0
httpcore==0.16.3
httpx==0.23.1
Expand Down Expand Up @@ -99,6 +102,7 @@ ptyprocess==0.7.0
pure_eval==0.2.3
py==1.11.0
pyarrow==16.1.0
pycairo==1.27.0
pycares==4.3.0
pycodestyle==2.10.0
pycparser==2.21
Expand All @@ -108,6 +112,7 @@ pydantic_core==2.23.4
pydeck==0.9.1
pyflakes==3.0.1
Pygments==2.18.0
PyGObject==3.50.0
pyheck==0.1.5
pyinstrument==4.7.3
pyparsing==3.1.4
Expand Down Expand Up @@ -153,5 +158,6 @@ watchdog==4.0.1
wcwidth==0.2.13
websockets==10.4
wrapt==1.16.0
xdot==1.4
yarl==1.8.2
zstandard==0.18.0

0 comments on commit cdc0c49

Please sign in to comment.