To route requests, you need to associate a backend server group to each listener.
This section describes how you can create a backend server group for a dedicated load balancer.
You can create a backend server group for a load balancer in any of the ways described in Table 1.
Scenario |
Procedure |
---|---|
Creating a backend server group and associating it with a load balancer |
|
Creating a backend server group when adding a listener |
You can add listeners using different protocols as required. For details, see Overview. References are as follows: |
Changing the backend server group associated with the listener |
The backend protocol of the new backend server group must match the frontend protocol of the listener as described in Table 2.
Parameter |
Description |
Example Value |
---|---|---|
Load Balancing Type |
Specifies the type of load balancers that can use the backend server group. Dedicated load balancers are recommended. The following parameters apply to exclusive load balancers. |
- |
Load Balancer |
Specifies whether to associate a load balancer. |
- |
Backend Server Group Name |
Specifies the name of the backend server group. |
server_group |
Backend Protocol |
Specifies the protocol that backend servers in the backend server group use to receive requests from the listeners. The protocol varies depending on the forwarding mode: The options are HTTP, HTTPS, TCP, UDP, and QUIC. |
HTTP |
Load Balancing Algorithm |
Specifies the algorithm used by the load balancer to distribute traffic. The following options are available:
For more information about load balancing algorithms, see Load Balancing Algorithms. |
Weighted round robin |
Sticky Session |
If you enable sticky sessions, all requests from the same client during one session are sent to the same backend server. For more information about sticky sessions, see Sticky Session. |
- |
Sticky Session Type |
Specifies the sticky session type. This parameter is mandatory if Sticky Session is enabled. You can select one of the following type:
NOTE:
|
Source IP address |
Stickiness Duration (min) |
Specifies the minutes that sticky sessions are maintained. This parameter is mandatory if Sticky Session is enabled.
|
20 |
Slow Start |
Specifies whether to enable slow start. This parameter is optional if you have selected Weighted round robin for Load Balancing Algorithm. After you enable this option, the load balancer linearly increases the proportion of requests to backend servers in this mode. When the slow start duration elapses, the load balancer sends full share of requests to backend servers and exits the slow start mode. NOTE:
Slow start is only available for HTTP and HTTPS backend server groups of dedicated load balancers. For more information about the slow start, see Slow Start (Dedicated Load Balancers). |
- |
Slow Start Duration (s) |
Specifies how long the slow start will last, in seconds. This parameter is mandatory if Slow Start is enabled. |
30 |
Description |
Provides supplementary information about the backend server group. |
- |
Add cloud servers, or IP addresses to this backend server group. For details, see Overview.
Parameter |
Description |
Example Value |
---|---|---|
Health Check |
Specifies whether to enable health checks. If the health check is enabled, click |
- |
Health Check Protocol |
Specifies the protocol that will be used by the load balancer to check the health of backend servers.
|
HTTP |
Domain Name |
Specifies the domain name that will be used for health checks. This parameter is mandatory if the health check protocol is HTTP, HTTPS, or gRPC.
|
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:
By default, the service port on each backend server is used. You can also specify a port for health checks. |
80 |
Path |
Specifies the health check URL, which is the destination on backend servers for health checks. This parameter is mandatory if the health check protocol is HTTP or HTTPS. The path can contain 1 to 80 characters and must start with a slash (/). The path can contain letters, digits, hyphens (-), slashes (/), periods (.), question marks (?), percent signs (%), ampersands (&), and underscores (_). |
/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 interval ranges from 1 to 50. |
3 |
Maximum Retries |
Specifies the maximum number of health check retries. The value ranges from 1 to 10. |
3 |
You can associate the backend server group with the listener of a dedicated load balancer in either ways listed in Table 1.