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?
✗ Incorrect
proxy_connect_timeout sets the time nginx waits to establish a connection with the backend server.
What happens if
proxy_read_timeout is reached before the backend sends data?✗ Incorrect
If the backend does not send data within proxy_read_timeout, nginx closes the connection and returns an error to the client.
Which timeout controls how long nginx waits to send data to the backend?
✗ Incorrect
proxy_send_timeout sets the timeout for sending data to the backend server.
If a backend server is very slow, what is a good practice regarding proxy timeouts?
✗ Incorrect
Setting reasonable timeouts helps nginx wait enough for slow servers but also fail fast if the server is unresponsive.
Which directive is NOT related to proxy timeouts in nginx?
✗ Incorrect
proxy_cache_path is for caching, not timeouts.
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.