Creating a Backend Server Group
Scenario
To route requests, you need to associate at least one backend server group with each listener.
A backend server group can be associated with listeners of different load balancers.
Table 1 describes the scenarios for creating a backend server group.
Scenario |
Reference |
---|---|
Creating a backend server group and associating it with a load balancer |
|
Creating a backend server group when adding a listener |
Adding listeners with different protocols by referring to Listener Overview |
Changing the backend server group associated with a listener |
Constraints
The backend protocol of the new backend server group must match the frontend protocol of the listener as described in Table 2.
Load Balancer Specification |
Frontend Protocol |
Backend Protocol |
---|---|---|
Network load balancing |
TCP |
TCP |
Network load balancing |
UDP |
|
Network load balancing |
TLS |
|
Application load balancing |
HTTP |
HTTP |
Application load balancing |
HTTPS |
|
Application load balancing |
QUIC |
|
Procedure
- Go to the backend server group list page.
- Click Create Backend Server Group in the upper right corner.
- Configure the routing policy based on Table 3.
Table 3 Parameters required for configuring a routing policy Parameter
Description
Backend Server Group Name
Specifies the name of the backend server group.
Type
Specifies the type of load balancer that can use the backend server group. Select Dedicated.
Load Balancer
Specifies whether to associate a load balancer.
You can associate an existing dedicated load balancer when you create a backend server group or associate one later.
- Associate later
- Associate existing
Forwarding Mode
Specifies the forwarding mode to distribute traffic. There are two options: Load balancing and Active/Standby.
- Load balancing: You can add one or more backend servers to the backend server group.
- Active/Standby: You must add two backend servers to the backend server group, one acting as the active server and the other as the standby server. If the active server is faulty, traffic is forwarded to the standby server, improving service reliability. Active/standby backend server groups can only be associated with TCP, UDP, and TLS listeners.
Backend Server Group Type
Specifies the type of the backend server group.
- Hybrid: You can add cloud servers, supplementary network interfaces as backend servers, and add IP addresses as backend servers when IP as a Backend is enabled.
When you create a hybrid backend server group, you must specify a VPC and associate the backend server group with a load balancer in this VPC.
- IP as a backend server: You can add IP addresses as backend servers only when you enable IP as a Backend.
NOTE:This option is available in certain regions. You can see which regions support this option on the console.
VPC
Specifies the VPC where the backend server group works. You can associate the backend server group with a load balancer in this VPC.
This parameter is mandatory if you select Hybrid for Backend Server Group Type.
You can select an existing VPC or create a new one.
For more information about VPC, see the Virtual Private Cloud User Guide.
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:
- Load balancing: HTTP, HTTPS, gRPC, TCP, UDP, TLS, or QUIC
- Active/Standby: TCP, UDP, TLS, or QUIC
IP Address Version
Specifies the IP address version of backend servers that can be added to the backend server group. By default, IPv4 backend servers are supported.
There are two options when the backend protocol is TCP or UDP:
- IPv4: Only IPv4 addresses can be added as backend servers.
- Dual stack: Both IPv4 and IPv6 addresses can be added as backend servers.
NOTE:This option is available in certain regions. You can see which regions support this option on the console.
Forward to Same Port
If this option is enabled, you do not need to specify a backend port when you add a backend server. The listener routes the requests to the backend server over the same port as the frontend port.
This option cannot be disabled after being enabled.
NOTE:This option is available in certain regions. You can see which regions support this option on the console.
NOTE:This option is available only for TCP and UDP backend server groups associated with a dedicated load balancer.
Load Balancing Algorithm
Specifies the algorithm used by the load balancer to distribute traffic. The following options are available:
- Weighted round robin: Requests are routed to different servers based on their weights. Backend servers with higher weights receive proportionately more requests, whereas equal-weighted servers receive the same number of requests.
- Weighted least connections: In addition to the number of connections, each server is assigned a weight based on its capacity. Requests are routed to the server with the lowest connections-to-weight ratio.
- Source IP hash: Allows requests from different clients to be routed based on source IP addresses and ensures that requests from the same client are forwarded to the same server.
- Connection ID: This algorithm is available when you have selected QUIC for Backend Protocol. This algorithm allows requests with the same connection ID to be routed to the same backend server.
For more information about load balancing algorithms, see Load Balancing Algorithms.
Forwarding Even Unhealthy
Specifies whether to forward traffic across all the backend servers even if all of them have been identified as unhealthy. This option is only available if Forwarding Mode is set to Load balancing.
This option is disabled by default, preventing requests from being sent to the backend server group, in which all backend servers are identified as unhealthy.
If this option is enabled, ELB forwards traffic across all the backend servers even if all of them have been identified as unhealthy.
The function improves service availability by preventing disruptions from faulty health checks resulting from misconfigurations.
Sticky Session
Specifies whether to enable sticky sessions if you have selected Weighted round robin, Connection ID, or Weighted least connections for Load Balancing Algorithm.
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 Enabling Sticky Session to Accelerate Access.
NOTE:- TLS backend server groups do not support sticky session.
- Sticky session is enabled by default and is not shown for QUIC backend server groups.
Sticky Session Type
Specifies the sticky session type.
This parameter is mandatory if Sticky Session is enabled. You can select one of the following types:
- 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 ensures requests from the same IP address are forwarded to the same backend server.
- Load balancer cookie: The load balancer generates a cookie after receiving a request from the client. All subsequent requests with the cookie are routed to the same backend server.
- Application cookie: The application deployed on the backend server generates a cookie after receiving the first request from the client. All subsequent requests with the cookie are routed to the same backend server.
NOTE:- Source IP address is available when you have selected TCP, QUIC, or UDP for Backend Protocol.
- Load balancer cookie and Application cookie are available when you have selected HTTP, GRPC, or HTTPS for Backend Protocol.
Stickiness Duration (min)
Specifies the minutes that sticky sessions are maintained. This parameter is mandatory if Sticky Session is enabled.
- Sticky sessions at Layer 4: 1 to 60
- Sticky sessions at Layer 7: 1 to 1440
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, gRPC, and HTTPS backend server groups of dedicated load balancers.
For more information about the slow start, see Slow Start.
Slow Start Duration (s)
Specifies how long the slow start will last, in seconds.
This parameter is mandatory if Slow Start is enabled.
Deregistration Delay
This parameter is enabled by default if the backend protocol is TCP, UDP, or QUIC.
If a backend server is removed or the health check fails, ELB continues to route in-flight requests to this server until the deregistration delay timeout expires.
NOTE:This option is available in certain regions. You can see which regions support this option on the console.
Deregistration Delay Timeout (s)
This parameter is mandatory if Deregistration Delay is enabled.
ELB continues to route in-flight requests to the backend server until the deregistration delay timeout expires.
The value ranges from 10 to 4000, in seconds. The default value is 300 on the console.
Description (Optional)
Provides supplementary information about the backend server group.
- Click Next to add backend servers and configure health check.
Add cloud servers, supplementary network interfaces, or IP as backend servers to this backend server group. For details, see Backend Server Overview.
Configure health check for the backend server group based on Table 4. For more information about health checks, see Health Check. - Click Next.
- Confirm the specifications and click Create Now.
Related Operations
You can associate the backend server group with the listener of a dedicated load balancer in the ways listed in Table 1.
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