I'm going to add these configuration:

proxy_connect_timeout 300s;
proxy_read_timeout 300s;

and for Gunicorn:

gunicorn_django -D -b --workers=5 --pid=/var/webapp/campus.pid --settings=settings.production --timeout 300 --pythonpath=/var/webapp/campus/

Can this cause any problems I do not know about?

(Additional context)


Per nginx document you can't give this much big timeout. Also it depend on tcp defaults to maintain connections.

Syntax: proxy_connect_timeout time;
proxy_connect_timeout 60s;

Context: http, server, location Defines a timeout for establishing a connection with a proxied server. It should be noted that this timeout cannot usually exceed 75 seconds. https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout

Adverse effect will be connections exhausted, connections leak etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.