Updated on 2022-01-25 GMT+08:00

Overview

A backend server is cloud server added to a backend server group associated with a load balancer. When adding a listener to a load balancer, you create or select a backend server group to receive requests from the load balancer 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 health check is configured, the load balancer will check its running status. If the backend server responds properly, it is declared healthy. If the backend server does not respond properly, the load balancer periodically checks its health for several times. Once it is declared 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 properly in each AZ.

Precautions

When adding backend servers, pay attention to the following:

  • Backend servers must be in the same VPC as the load balancer.
  • It is recommended that backend servers run the same OS for ease of management and maintenance.
  • You can set a weight for each server in the backend server group. The higher the weight is, the more requests the backend server receives.
  • If you enable the sticky session feature, the proportions of requests processed by backend servers may become unbalanced. In this case, disable the sticky session feature and wait until each backend server receives almost the equal proportion of requests.