Configuring Timeout Durations
Scenarios
You can configure timeout durations (idle timeout, request timeout, and response timeout) for your listeners to meet varied demands. For example, if the size of a request from an HTTP or HTTPS client is large, you can increase the request timeout duration to ensure that the request can be successfully routed.
For dedicated load balancers, you can change the timeout durations of TCP, UDP, HTTP, and HTTPS listeners.
Protocol |
Type |
Description |
Value Range |
Default Timeout Duration |
---|---|---|---|---|
TCP |
Idle Timeout |
Duration for a connection to be kept alive. If no request is received within this period, the load balancer closes the connection and establishes a new one with the client when the next request arrives. |
10–4000s |
300s |
UDP |
Idle Timeout |
10–4000s |
Shared load balancers: 10s Dedicated load balancers: 300s |
|
HTTP/HTTPS |
Idle Timeout |
10–4000s |
60s |
|
Request Timeout |
Duration after which the load balancer closes the connection with the client if the load balancer does not receive a request from the client. |
10–300s |
60s |
|
Response Timeout |
Duration after which the load balancer sends a 504 Gateway Timeout error to the client if the load balancer receives no response after routing a request to a backend server and receives no response after attempting to route the same request to other backend servers.
NOTE:
If sticky sessions are enabled and the backend server does not respond within the response timeout duration, the load balancer returns the 504 error code without attempting to route the same request to other backend servers. |
1–300s |
60s |
Procedure
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
- Locate the load balancer and click its name.
- Click Listeners, locate the listener, and click the name of the listener.
- On the Summary tab page, click Edit on the top right.
- In the Edit dialog box, expand Advanced Settings.
- Configure Idle Timeout (s), Request Timeout (s), or Response Timeout (s) as you need.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.