Overview

A backend server is a cloud server added to a backend server group associated with a load balancer. When you add a listener to a load balancer, you can create or select a backend server group to receive requests from the load balancer by using the port and protocol you specify for the backend server group and the load balancing algorithm you select.

After a new server is added to the associated backend server group for which the health check is configured, the load balancer will check its running status. If the backend server responds normally, it is declared healthy. If the backend server does not respond normally, the load balancer periodically checks its health for multiple times. Only after the backend server is considered healthy, it can receive requests from the load balancer.

You can adjust the number of backend servers to ensure stable and reliable service based on your budget. Load balancers can distribute requests across backend servers in different AZs to prevent SPOFs. You must ensure that at least one backend server is working normally in each AZ.

You can view the load balancer that the backend server is associated with by the IP address or ID of the backend server on the ELB console.

If a backend server is stopped or restarted, connections established with the server will be disconnected, and data being transmitted over these connections will be lost. Configure the retry function on the clients to prevent data loss.

Slow Start

After you enable slow start, the load balancer linearly increases the proportion of requests to backend servers in this mode. When the slow start duration expires, the load balancer sends full share of requests to backend servers and exits the slow start mode.

Hybrid Load Balancing

ELB allows you to add cloud servers that are not in the same VPC as the load balancer, using their IP addresses. These cloud servers can be from a VPC connected using a VPC peering connection, a VPC connected through a cloud connection, or an on-premises data center at the other end of a Direct Connect or VPN connection.

Notes

When you add backend servers, note the following:

  • Backend servers must be in the same VPC as the load balancer. If backend servers and the load balancer are in different VPCs, the load balancer cannot route requests to the backend servers.
  • For ease of management and maintenance, backend servers must run the same OS.
  • You can set a weight for each server in the backend server group. The higher the weight is, the higher proportion of requests the backend server receives.
  • If you enable sticky sessions, the proportions of requests processed by backend servers may become unbalanced. In this case, disable sticky sessions and check the requests received by each backend server.
  • Security groups for backend servers must have inbound rules to allow traffic from both backend server ports and health check ports. Otherwise, health checks will be affected, and backend servers cannot receive requests from the load balancer. For details, see Configuring Security Group Rules for Backend Servers (Shared Load Balancers).
  • Dedicated load balancers do not support Xen ECSs. See x86 ECS Specifications for more details.
  • For a private network load balancer, if the client is a Xen ECS, you must select the AZ where the client resides when creating a dedicated load balancer. For example, if the client is an S1 ECS and it is in AZ 1, you must select AZ 1 for the dedicated load balancer. See x86 ECS Specifications for more details.
When you enable slow start, note the following:
  • Currently, only HTTP and HTTPS backend server groups support slow start.
  • This function is valid only for the weighted round robin algorithm.
  • Slow start can be enabled only for new backend servers, and it does not take effect for backend servers that are added to a backend server group that has no backend servers.
  • When the health check function is enabled, slow start takes effect after backend servers are detected healthy. If the health check is not working normally during the slow start, the slow start duration will not stop.
  • When the health check function is disabled, slow start takes effect immediately.
  • After the slow start duration elapses, backend servers will not enter the slow start mode again.
When you add cross-VPC backend servers, note the following:
  • If you do not enable the function when you create a load balancer, you need to enable it on the Basic Information page of the load balancer. Otherwise, cross-VPC backend servers cannot be added.
  • Cross-VPC backend servers must use IPv4 addresses. These IP addresses cannot be public IP addresses or IP addresses from the CIDR block of the VPC where the load balancer is deployed. Otherwise, requests cannot be routed to backend servers.
  • Only TCP, HTTP, and HTTPS listeners support this function.
  • The subnet of the load balancer must have sufficient IP addresses. Otherwise, cross-VPC backend servers cannot be added. You can add more subnets for more IP addresses on the Basic Information page of the load balancer.
  • Security group rules of cross-VPC backend servers must allow traffic from the subnet of the load balancer. Otherwise, health checks will fail.
  • This function cannot be disabled after it is enabled.
  • Source IP addresses of the clients cannot be passed to cross-VPC backend servers. Install the TOA module to obtain source IP addresses.
  • Backend servers can be in the same VPC as the load balancer, or from a peer VPC, a VPC connected through the cloud connection, or an on-premises data center connected to the cloud using a Direct Connect or VPN connection. To add cross-VPC backend servers, you must configure the routes correctly. For details, see Adding or Removing Backend Servers (Dedicated Load Balancers).