0
0
Nginxdevops~5 mins

Proxy timeouts in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of proxy timeouts in nginx?
Proxy timeouts control how long nginx waits for responses from a backend server before giving up. They help avoid hanging connections and improve reliability.
Click to reveal answer
beginner
Which nginx directive sets the timeout for establishing a connection with the proxied server?
proxy_connect_timeout sets the maximum time nginx waits to connect to the backend server.
Click to reveal answer
beginner
What does proxy_read_timeout control in nginx?
proxy_read_timeout sets how long nginx waits to receive data from the backend server after the connection is established.
Click to reveal answer
intermediate
How does proxy_send_timeout affect nginx proxy behavior?
proxy_send_timeout defines the timeout for sending a request to the backend server. If nginx cannot send data in this time, it closes the connection.
Click to reveal answer
intermediate
Why is it important to configure proxy timeouts properly in nginx?
Proper proxy timeouts prevent nginx from waiting too long on slow or unresponsive backend servers, improving user experience and resource use.
Click to reveal answer
Which directive controls how long nginx waits to connect to a backend server?
Aproxy_connect_timeout
Bproxy_read_timeout
Cproxy_send_timeout
Dproxy_pass
What happens if proxy_read_timeout is reached before the backend sends data?
ANginx waits indefinitely
BNginx retries the request automatically
CNginx sends a new request
DNginx closes the connection and returns an error
Which timeout controls how long nginx waits to send data to the backend?
Aproxy_connect_timeout
Bclient_body_timeout
Cproxy_send_timeout
Dproxy_read_timeout
If a backend server is very slow, what is a good practice regarding proxy timeouts?
ASet timeouts to zero to wait forever
BSet reasonable timeouts to balance wait and fail fast
CSet timeouts too low to avoid waiting
DDisable timeouts completely
Which directive is NOT related to proxy timeouts in nginx?
Aproxy_cache_path
Bproxy_connect_timeout
Cproxy_send_timeout
Dproxy_read_timeout
Explain the roles of proxy_connect_timeout, proxy_read_timeout, and proxy_send_timeout in nginx proxy configuration.
Think about connection, sending, and receiving phases.
You got /3 concepts.
    Why should you avoid setting proxy timeouts too high or too low in nginx?
    Consider user experience and server responsiveness.
    You got /3 concepts.