Configuring Hybrid Load Balancing (Dedicated Load Balancers)
Scenarios
You can add servers in a VPC connected using a VPC peering connection, in a VPC in another region and connected through a cloud connection, or in an on-premises data center at the other end of a Direct Connect or VPN connection, by using their IP addresses. In this way, incoming traffic can be flexibly distributed to cloud servers and on-premises servers for hybrid load balancing.
Prerequisites
- You have created a dedicated load balancer.
- You have added a listener to the dedicated load balancer.
- You have correctly configured VPC routes to ensure that backend servers are accessible. Cross-VPC backend servers can be in a VPC connected using a VPC peering connection or cloud connection, or in an on-premises data center connected using a Direct Connect or VPN connection.
Constraints
- 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.
Procedure
- Log in to the management console.
- In the upper left corner of the page, click
and select the desired region and project. - Click Service List. Under Network, click Elastic Load Balance.
- On the Load Balancers page, locate the dedicated load balancer that you have created and click its name.
- In the Backend Server Groups tab, click Cross-VPC Backend Servers.

- Click Add Cross-VPC Backend Server and set the IP address, backend port, and weight.
Ensure that the IP addresses of the servers are reachable and the backend ports are actually used by backend servers. Otherwise, the backend servers will be considered unhealthy.

- Click OK.
Last Article: Adding or Removing Backend Servers (Dedicated Load Balancers)
Next Article: Configuring Weights for Backend Servers
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.