You can add a TCP listener, if high reliability and high accuracy are required but slow speed is acceptable, for example, during file transfer, email sending and receiving, and remote login.
Parameter |
Description |
Example Value |
---|---|---|
Name |
Specifies the listener name. |
listener-pnqy |
Frontend Protocol |
Specifies the protocol that will be used by the load balancer to receive requests from clients. |
TCP |
Frontend Port |
Specifies the port that will be used by the load balancer to receive requests from clients. The port number ranges from 1 to 65535. |
80 |
Access Control |
Specifies how access to the listener is controlled. The following options are available (for details, see Access Control):
|
Blacklist |
IP Address Group |
Specifies the IP address group associated with a whitelist or blacklist. If there is no IP address group, create one first. For more information, see Creating an IP Address Group. |
ipGroup-b2 |
Transfer Client IP Address |
Specifies whether to transmit IP addresses of the clients to backend servers. This function is enabled for dedicated load balancers by default and cannot be disabled. |
N/A |
Advanced Settings |
||
Idle Timeout |
Specifies the length of time for a connection to keep alive, in seconds. 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. The idle timeout duration ranges from 10 to 4000. |
300 |
Tag |
Adds tags to the listener. Each tag is a key-value pair, and the tag key is unique. |
- |
Description |
Provides supplementary information about the listener. You can enter a maximum of 255 characters. |
N/A |
Parameter |
Description |
Example Value |
---|---|---|
Backend Server Group |
Specifies a group of servers with the same features to receive requests from the load balancer. Two options are available:
|
Create new |
Backend Server Group Name |
Specifies the name of the backend server group. |
server_group |
Backend Protocol |
Specifies the protocol used by backend servers to receive requests. The backend protocol is TCP by default and cannot be changed. |
TCP |
Load Balancing Algorithm |
Specifies the algorithm used by the load balancer to distribute traffic. The following options are available:
NOTE:
|
Weighted round robin |
Sticky Session |
Specifies whether to enable sticky sessions. If you enable sticky sessions, all requests from a client during one session are sent to the same backend server. This parameter is optional and can be enabled only if you have selected Weighted round robin for Load Balancing Algorithm. |
N/A |
Sticky Session Type |
Specifies the type of sticky sessions. Source IP address is the only choice available when TCP or UDP is used as the frontend protocol. Source IP address: The source IP address of each request is calculated using the consistent hashing algorithm to obtain a unique hashing key, and all backend servers are numbered. The system allocates the client to a particular server based on the generated key. This allows requests from the same IP address to be forwarded to the same backend server. |
Source IP address |
Stickiness Duration (min) |
Specifies the minutes that sticky sessions are maintained. You can enable sticky sessions only if you select Weighted round robin for Load Balancing Algorithm.
|
20 |
Description |
Provides supplementary information about the backend server group. You can enter a maximum of 255 characters. |
N/A |
Parameter |
Description |
Example Value |
---|---|---|
Health Check |
Specifies whether to enable health checks. If the health check is enabled, click |
N/A |
Advanced Settings |
||
Health Check Protocol |
Specifies the protocol that will be used by the load balancer to check the health of backend servers. If the backend protocol is TCP, the health check protocol can be TCP, HTTP, or HTTPS. |
HTTP |
Domain Name |
Specifies the domain name that will be used for health checks. This parameter is available when the health check protocol is HTTP or HTTPS. This parameter is left blank by default. A domain name can contain only digits, letters, and hyphens (-) and cannot start with a hyphen (-). A domain name must contain at least two labels separated by periods (.). Each label can contain a maximum of 63 characters, and the total length of a domain name cannot exceed 100 characters. |
www.elb.com |
Health Check Port |
Specifies the port that will be used by the load balancer to check the health of backend servers. The port number ranges from 1 to 65535. NOTE:
This parameter is optional. If you do not specify a health check port, a port of the backend server will be used for health checks by default. If you specify a port, it will be used for health checks. |
80 |
Path |
Specifies the health check URL, which is the destination on backend servers for health checks. This parameter is available only when you set the health check protocol to HTTP or HTTPS. The path must start with a slash (/) and can contain 1 to 80 characters. The path can contain letters, digits, hyphens (-), slashes (/), periods (.), percent signs (%), ampersands (&), and the following special characters: _~';@$*+,=!:() NOTE:
Example: If the URL is http://www.example.com/chat/try/, the health check path is /chat/try/. If the URL is http://192.168.63.187:9096/chat/index.html, the health check path is /chat/index.html. |
/index.html |
Interval (s) |
Specifies the maximum time between two consecutive health checks, in seconds. The interval ranges from 1 to 50. |
5 |
Timeout (s) |
Specifies the maximum time required for waiting for a response from the health check, in seconds. The timeout duration ranges from 1 to 50. |
3 |
Maximum Retries |
Specifies the maximum number of health check retries. The value ranges from 1 to 10. |
3 |
Parameter |
Description |
Example Value |
---|---|---|
Name |
Specifies the listener name. |
listener-pnqy |
Frontend Protocol |
Specifies the protocol that will be used by the load balancer to receive requests from clients. |
TCP |
Frontend Port |
Specifies the port that will be used by the load balancer to receive requests from clients. The port number ranges from 1 to 65535. |
80 |
Access Control |
Specifies how access to the listener is controlled. The following options are available (for details, see Access Control):
|
Whitelist |
IP Address Group |
Specifies the IP address group associated with a whitelist or blacklist. If there is no IP address group, create one first. For more information, see Creating an IP Address Group. |
ipGroup-b2 |
Transfer Client IP Address |
Specifies whether to transmit IP addresses of the clients to backend servers. This parameter is available when the listener protocol is TCP or UDP. |
N/A |
Advanced Settings |
||
Idle Timeout |
Specifies the length of time for a connection to keep alive, in seconds. 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. The idle timeout duration ranges from 10 to 4000. |
300 |
Tag |
Adds tags to the listener. Each tag is a key-value pair, and the tag key is unique. |
- |
Description |
Provides supplementary information about the listener. You can enter a maximum of 255 characters. |
N/A |
Parameter |
Description |
Example Value |
---|---|---|
Backend Server Group |
Specifies a group of servers with the same features to receive requests from the load balancer. Two options are available:
|
Create new |
Backend Server Group Name |
Specifies the name of the backend server group. |
server_group-sq4v |
Backend Protocol |
Specifies the protocol used by backend servers to receive requests. The backend protocol is TCP by default and cannot be changed. |
TCP |
Load Balancing Algorithm |
Specifies the algorithm used by the load balancer to distribute traffic. The following options are available:
NOTE:
|
Weighted round robin |
Sticky Session |
Specifies whether to enable sticky sessions. If you enable sticky sessions, all requests from a client during one session are sent to the same backend server. NOTE:
You can enable sticky sessions only if you have selected Weighted round robin for Load Balancing Algorithm. |
N/A |
Sticky Session Type |
Specifies the type of sticky sessions. Source IP address is the only choice available when TCP or UDP is used as the frontend protocol. Source IP address: The source IP address of each request is calculated using the consistent hashing algorithm to obtain a unique hashing key, and all backend servers are numbered. The system allocates the client to a particular server based on the generated key. This allows requests from the same IP address to be forwarded to the same backend server. |
Source IP address |
Stickiness Duration (min) |
Specifies the minutes that sticky sessions are maintained. You can enable sticky sessions only if you select Weighted round robin for Load Balancing Algorithm.
|
20 |
Description |
Provides supplementary information about the backend server group. You can enter a maximum of 255 characters. |
N/A |
Parameter |
Description |
Example Value |
---|---|---|
Health Check |
Specifies whether to enable health checks. If the health check is enabled, click |
N/A |
Advanced Settings |
||
Health Check Protocol |
Specifies the protocol that will be used by the load balancer to check the health of backend servers. There are two options: TCP and HTTP. |
HTTP |
Domain Name |
Specifies the domain name that will be used for health checks. This parameter is available when you set the health check protocol to HTTP.
|
www.elb.com |
Health Check Port |
Specifies the port that will be used by the load balancer to check the health of backend servers. The port number ranges from 1 to 65535. NOTE:
This parameter is optional. If you do not specify a health check port, a port of the backend server will be used for health checks by default. |
80 |
Path |
Specifies the health check URL, which is the destination on backend servers for health checks. This parameter is available only when the health check protocol is HTTP. The path must start with a slash (/) and can contain 1 to 80 characters. The path can contain letters, digits, hyphens (-), slashes (/), periods (.), percent signs (%), ampersands (&), and the following special characters: _~';@$*+,=!:() NOTE:
Example: If the URL is http://www.example.com/chat/try/, the health check path is /chat/try/. If the URL is http://192.168.63.187:9096/chat/index.html, the health check path is /chat/index.html. |
/index.html |
Interval (s) |
Specifies the maximum time between two consecutive health checks, in seconds. The interval ranges from 1 to 50. |
5 |
Timeout (s) |
Specifies the maximum time required for waiting for a response from the health check, in seconds. The timeout duration ranges from 1 to 50. |
3 |
Maximum Retries |
Specifies the maximum number of health check retries. The value ranges from 1 to 10. |
3 |