You need to enable JavaScript to run this app.
Load Balancer

Load Balancer

Copy page
Download PDF
Server groups
Overview
Copy page
Download PDF
Overview

A server group is a logical collection of backend servers. An Application Load Balancer (ALB) instance determines which server group will receive client requests based on your configured forwarding rules. Then, the ALB instance distributes requests to backend servers within the server group according to your configured load balancing algorithm. The backend servers receive and process the requests.

Server group types

When creating a server group, you need to specify the server group type, which determines the types of backend servers that can be added.
ALB instances support two server group types: "server" and "IP". To use the IP type server group, please contact your customer manager or submit a ticket.

Server Group Type

Backend Server Type

Description

Server

Backend servers can be one of the following two types:

  • ECS instances
  • Secondary network interfaces bound to ECS instances

The ECS instances must be in the same VPC as the server group.

IP

Backend servers can be IP addresses from the following private network segments:

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16

You can add IP addresses from the same VPC as the server group. When the "Remote IP" feature is enabled and network connectivity is ensured, you can also add IP addresses from different VPCs or from your on-premises IDC.

Backend communication protocol and health check protocol

When creating a server group, you need to specify the backend communication protocol and health check protocol. There are specific relationships between listener types, backend communication protocols, and health check protocols. For example, HTTP listeners support HTTP and HTTPS as backend communication protocols, and HTTP and TCP as health check protocols. See the table below for details.

Listener Type

Backend Communication Protocol

Health Check Protocol

HTTP

HTTP, HTTPS

HTTP, TCP

HTTPS

HTTP, HTTPS

HTTP, TCP

HTTP/2

HTTP, HTTPS, gRPC

HTTP, TCP

QUIC

HTTP, HTTPS

HTTP, TCP

Health check

The health check feature of ALB needs to be configured at the server group level. Health check is enabled by default for server groups. You can apply a health check template to a server group or customize the health check configuration.
When you enable health check for a server group, ALB periodically initiates health check requests to check the status of backend servers in the server group. When a backend server cannot properly respond to ALB's health check requests, traffic from clients will not be routed to that server. ALB will forward traffic to healthy backend servers. This approach ensures business continuity.
For more information about health check, refer to Health check.

Routing algorithm

The routing algorithm at the server group level is also known as the load balancing algorithm. The load balancing algorithm determines how client requests are distributed among backend servers. ALB supports the following load balancing algorithms:

  • Weighted Round Robin (WRR): WRR generates a fixed request distribution sequence based on preset weight values. Within a polling cycle, backend servers with higher weights receive more requests. WRR only considers the weight of backend servers, not their load. This algorithm is suitable for scenarios where the number of requests and the processing time per request are relatively stable, but there are significant performance differences between backend servers.
  • Weighted Least Connections (WLC): ALB dynamically calculates the "current connections/weight" value for each backend server and routes new requests to the server with the lowest value. The WLC algorithm considers both the load and weight of backend servers. This algorithm is suitable for scenarios with high request volumes and varying processing times per request, preventing any single backend server from becoming overloaded.
  • Source IP Hash (SH): Requests from the same source IP address are routed to the same backend server. The SH algorithm does not consider the weight or load of backend servers and always routes requests from the same client to the same backend server. This algorithm is suitable for scenarios that require session persistence based on source IP address.
    For more information about load balancing algorithms, refer to Load balancing algorithms.

Session persistence

ALB provides Cookie-based session persistence. When you enable this feature for a server group, ALB can forward requests from the same client to the same backend server based on Cookies.
For more information about session persistence, refer to Configure Cookie-based session persistence.

Cross-zone load balancing

The "cross-zone load balancing" feature at the ALB instance level is enabled by default and cannot be disabled. Instance nodes in each availability zone simultaneously receive client requests. By default, instance nodes in one availability zone distribute received requests to backend servers in all availability zones where the ALB instance is located.
You can disable the "cross-zone load balancing" feature at the server group level. After this feature is disabled, an instance node will only distribute received requests to backend servers in the same availability zone.
For more information about the "cross-zone load balancing" feature, refer to Cross-zone load balancing.

Note on server group configuration

  • Server groups are independent from ALB instances. A server group can be associated with listeners of any ALB instance in the same VPC.
  • Multiple IPv4 backend servers can be added to a server group.
  • A backend server can be added to different server groups.
  • Backend servers in the same region but different availability zones can be added to the same server group.
Last updated: 2025.07.04 16:28:47