Listener Overview
A listener checks requests from clients and routes requests to backend servers using the protocol, port, and load balancing algorithm you select. You need to add at least one listener after you have created a load balancer.
Supported Protocols and Application Scenarios
ELB provides load balancing at both Layer 4 and Layer 7.
You can select TCP, TLS, or UDP for network load balancing and HTTP or HTTPS for application load balancing.
Type |
Protocol |
Description |
Application Scenario |
---|---|---|---|
Network listeners |
TCP |
|
|
Network listeners |
UDP |
|
Scenarios that require quick response, such as video chat, gaming, and real-time financial quotations |
Network listeners |
TLS |
|
Scenarios that require ultra-high performance and large-scale TLS offloading |
Application listeners |
HTTP |
|
Applications that require content identification, for example, web applications and mobile games |
Application listeners |
HTTPS |
|
Workloads that require encrypted transmission, such as e-commerce and financial services. |
TLS listeners will be available in more regions. See details on the management console.
Frontend Protocols and Ports
Frontend protocols and ports are used by load balancers to receive requests from clients.
Load balancers use TCP, TLS, or UDP for network load balancing, and HTTP or HTTPS for application load balancing. Select a protocol and a port that best suit your requirements.
The frontend protocols and ports cannot be changed once a listener is added. If you want to use a different protocol and port, add another listener.
Frontend Protocol |
TCP, UDP, TLS, HTTP, or HTTPS |
---|---|
Frontend Port |
Listeners using different protocols of a load balancer cannot use the same port. However, UDP listeners can use the same port as listeners that use other protocols. For example, if there is a UDP listener that uses port 88, you can add a TCP listener that also uses port 88. The port number ranges from 1 to 65535. The following are some commonly-used protocols and port numbers:
|
Backend Protocols and Ports
Backend protocols and ports are used by backend servers to receive requests from load balancers. If Windows servers have Internet Information Services (IIS) installed, the default backend protocol and port are HTTP and 80.
Backend Protocol |
TCP, UDP, TLS, HTTP, HTTPS, or QUIC |
---|---|
Backend Port |
Backend servers of a load balancer can use the same ports. The port number ranges from 1 to 65535. The following are some commonly-used protocols and port numbers:
|
Forwarding by Port Ranges
Forwarding by Port Ranges is available only when you select TCP or UDP as the frontend protocol.
If this option is enabled, the listener checks requests from all ports in the port range you specify and routes them to the corresponding ports on the backend servers.
Timeout Durations
You can configure and modify timeout durations 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 prolong the request timeout duration to ensure that the request can be successfully routed.
Protocol |
Type |
Description |
Value Range |
Default Timeout Duration |
---|---|---|---|---|
TCP |
Idle Timeout |
Duration for a connection to keep 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 |
300s |
|
HTTP/HTTPS |
Idle Timeout |
0–4000s |
60s |
|
Request Timeout |
Duration that a load balancer is willing to wait for a client request to complete. The load balancer terminates the connection if a request takes too long to complete. |
1–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 you have enabled sticky sessions and the backend server does not respond within the response timeout duration, the load balancer returns 504 Gateway Timeout to the clients. |
1–300s |
60s |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot