diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 0a53c4d..3e7083c 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,10 +1,16 @@ bind = "0.0.0.0:8000" workers = 2 # Tune based on available CPU cores worker_class = "uvicorn.workers.UvicornWorker" -timeout = 60 +timeout = 300 # Increased from 60 to 300 seconds (5 minutes) keepalive = 30 loglevel = "info" accesslog = "-" errorlog = "-" proxy_allow_ips = "*" +max_requests = 1000 +max_requests_jitter = 50 +worker_connections = 1000 +limit_request_line = 0 # No limit on request line size +limit_request_field_size = 0 # No limit on field size +limit_request_fields = 100 # Limit number of header fields