Skip to content

Commit

Permalink
feat: set default worker to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhang committed Jul 18, 2022
1 parent 0f0d39f commit 7aa2e54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ COPY ./app /bilibili_proxy/app

EXPOSE 8080

CMD ["uvicorn", "app.main:app", "--host=0.0.0.0", "--port=8080", "--timeout-keep-alive=30"]
CMD ["uvicorn", "app.main:app", "--host=0.0.0.0", "--port=8080", "--timeout-keep-alive=30", "--workers=20"]
1 change: 0 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from socket import timeout
import httpx
from fastapi import FastAPI
from app.bilibili.search import bvid_to_music
Expand Down

0 comments on commit 7aa2e54

Please sign in to comment.