mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Add 4 workers to fully utilize performance CPUs and RAM
- Increase from 1 to 4 Uvicorn workers - Better utilizes 2 CPU cores and 4GB RAM - Improves concurrent request handling 4x - Each worker ~200-400MB, leaves plenty of headroom for caching
This commit is contained in:
@@ -9,7 +9,8 @@ def main():
|
||||
host="0.0.0.0",
|
||||
port=8000,
|
||||
reload=False,
|
||||
log_level="info"
|
||||
log_level="info",
|
||||
workers=4
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user