Updated on 2026-11-05 GMT+08:00

Dedicated Load Balancer Overview

A load balancer automatically distributes incoming traffic across multiple backend servers based on the routing policies you configure. It expands the service availability and scalability of your applications. You can plan the load balancer configurations by referring to this section.

Region

  • Resources in different regions cannot communicate with each other over internal networks. For lower network latency and faster access to resources, select the region nearest to where your services will be accessed.
  • You can add servers in a different VPC from where the load balancer is created, or in an on-premises data center, by using private IP addresses of the servers. For details, see Adding Backend Servers in a Different VPC from a Load Balancer.
  • You can connect VPCs in different regions.

AZ

Dedicated load balancers can be deployed across AZs. If you select multiple AZs, a load balancer is created in each selected AZ.

To reduce network latency and improve access speed, it is recommended to deploy the load balancer in the same AZ as the backend servers.

Load balancers in different AZs work in multi-active mode, and requests are distributed by the nearest load balancer in the same AZ.

Table 1 Disaster recovery planning

DR Solution

Application Scenario

Advantage

Select multiple AZs for a load balancer.

If the number of requests does not exceed what the largest specification can handle, you can create a load balancer and select multiple AZs.

If the load balancer in an AZ goes down, the load balancer in other AZs takes over to route traffic.

Create multiple load balancers and select multiple AZs for each load balancer.

If the number of requests exceeds what the largest specification can handle, you can create multiple load balancers and select multiple AZs for each load balancer.

If a load balancer in an AZ goes down, another load balancer in the same AZ or other AZs takes over to distribute traffic.

Table 2 Traffic distribution

Source

Traffic Distribution

Internet

If requests are from the Internet, the load balancer in each AZ you select routes the requests based on source IP addresses. If you select multiple AZs for a load balancer, the requests the load balancers can handle will be multiplied by the number of AZs.

Private network

  • If clients are in the same AZ as the load balancer, requests are distributed by the load balancer in this AZ. If the load balancer goes down, requests are distributed by the load balancer in another AZ.

    If the load balancer is healthy but the connections that the load balancer needs to handle exceed the amount defined in the specifications, services may be interrupted. To address this issue, you need to upgrade specifications.

    You can monitor traffic usage on private networks by AZ.

  • If clients are in an AZ that is different from the load balancer, requests are distributed by the load balancer in each AZ you select based on source IP addresses.

Direct Connect connection

If requests are from a Direct Connect connection, the load balancer in the same AZ as the Direct Connect connection routes the requests. If the load balancer in this AZ goes down, requests are distributed by the load balancer in another AZ.

A VPC that is different from where the load balancer works

If the client is in a VPC that is different from where the load balancer works, the load balancer in the AZ where the client subnet works routes the requests. If the load balancer in this AZ goes down, requests are distributed by the load balancer in another AZ.

Specifications

Network load balancers can route TCP, TLS, or UDP requests, while application load balancers route HTTP, QUIC, and HTTPS requests.

Select appropriate specifications based on your traffic volume and service requirements. For details, see Specifications of Dedicated Load Balancers.

For details, see Table 3.

Table 3 Guide for selecting a specification

Specifications

Description

Network load balancing

Pay attention to the maximum number of concurrent connections and consider maximum concurrent connections as a key metric. Estimate the maximum number of concurrent connections that a load balancer needs to handle and select the corresponding specification.

Application load balancing

Consider QPS as a key metric, which determines the service throughput of an application system. Estimate the QPS that a load balancer needs to handle and select the corresponding specification.

Protocols

ELB provides load balancing at both Layer 4 and Layer 7. Choose an appropriate protocol when you add a listener to a load balancer.

  • Network load balancers work well for heavy-traffic workloads that need to handle massive concurrent requests at Layer 4, such as file transfer, instant messaging, and online video services.
    Figure 1 Layer 4 load balancing
  • Application load balancers handle Layer 7 requests and support advanced forwarding policies.
    Figure 2 Layer 7 load balancing
Table 4 Protocols

Protocol Type

Description

Network

After receiving a request, each network listener routes it directly to backend servers. In this process, the destination IP address in a packet is changed to the IP address of the backend server, and the source IP address to the private IP address of the load balancer. A connection is established after a three-way handshake between the client and the backend server, and the load balancer only forwards the data.

Application

Once an application listener of a load balancer receives a request, it works as a proxy for backend servers and initiates a connection (three-way handshake) with the client. It then determines which backend server to route the request to based on the fields in the HTTP/HTTPS request header and the load balancing algorithm you select when you add the listener.

ELB establishes persistent connections between the clients and the load balancers to reduce the costs of a large number of short connections. After a persistent connection is established, the client can keep sending HTTP or HTTPS requests to the load balancer until the connection times out.

Table 5 IP version description

IP Version

Private Network Load Balancer

IP Address Used to Provide Services to External Systems

Public Network Load Balancer

IP Address Used to Provide Services to External Systems

Description

IPv4

One private IPv4 address

Communication with both private and public networks: one private IPv4 address + one public IPv4 address

Communication with only the public network: one public IPv4 address

Only IPv4 addresses can be used for access from clients.

IPv6

One IPv6 address

One IPv6 address

Only IPv6 addresses can be used for access from clients.

IPv4 + IPv6

One private IPv4 address + One IPv6 address

Communication with both private and public networks: one private IPv4 address + one public IPv4 address + one IPv6 address

Communication with only the public network: one public IPv4 address + one IPv6 address

Both IPv4 and IPv6 addresses can be used for access from clients.

Network Type

Dedicated load balancers can work on both public and private networks.

Table 6 ELB network types

Network Type

Note

Application Scenarios

Load balancing on a public network

You need to bind an EIP or global EIP to this type of load balancer.

Public network load balancers can receive requests from the Internet and route the requests to backend servers.

  • A load balancer is used as a single point of contact for clients when a group of servers provides services over the Internet.
  • Fault tolerance and fault recovery are necessary.

Load balancing on a private network

This type of load balancer has only private IP addresses and can be only accessed within a VPC.

They receive requests from clients in a VPC and route the requests across backend servers in the same VPC.

  • There are multiple backend servers, and requests need to be evenly distributed across these servers.
  • Fault tolerance and fault recovery are necessary.
  • You do not want IP addresses of your physical devices to be exposed.

Load Balancer Statuses

Table 7 Load balancer statuses and descriptions

Load Balancer Status

Status Description

Allow Deletion

Allow Specification Change

Creating

The load balancer is being created.

No

No

Copying

The load balancer is being copied.

No

No

Running

The load balancer is running properly.

If a load balancer has not been used for more than seven days and meets any of the following conditions, its status in the load balancer list will be displayed as Idle:

  • No listener is added to the load balancer.
  • All listeners of the load balancer are disabled.
  • The load balancer has no backend servers associated.
  • Deletion protection enabled: No
  • Deletion protection disabled: Yes
  • Modification protection enabled: No
  • Modification protection disabled: Yes

Stopped

The load balancer is stopped.

If a load balancer has been stopped for more than seven days, its status in the load balancer list will be displayed as Idle.

  • Deletion protection enabled: No
  • Deletion protection disabled: Yes
  • Deletion protection enabled: No
  • Deletion protection disabled: Yes

Upgrading

The shared load balancer is being upgraded to a dedicated load balancer.

No

No

Verifying traffic routing

During the upgrade, check the settings of the dedicated load balancer and verify that it can route traffic.

No

No

Rolling back

The instance is being rolled back.

No

No

Rollback failed

The load balancer failed to be rolled back.

No

No

Upgrade failed

The shared load balancer failed to be upgraded to a dedicated load balancer.

No

No

Deleting

The load balancer is being deleted.

No

No

Unhealthy

The load balancer is abnormal.

No

No

Frozen

The load balancer is being frozen and cannot be operated.

No

No

Backend Server

Before you use ELB, you need to create cloud servers (ECSs or BMSs), deploy required applications on them, and add the cloud servers to one or more backend server groups. When you create cloud servers, note the following:

  • Cloud servers should be in the same region as the load balancer.
  • Cloud servers running the same OS are recommended so that you can manage them more easily.
  • ELB does not support File Transfer Protocol (FTP), but supports Secure File Transfer Protocol (SFTP) on backend servers.