Updated on 2023-12-06 GMT+08:00

Solution Overview

Application Scenarios

You can use ELB to route traffic to backend servers in different VPCs connected over a VPC peering connection.

Solution Architecture

The following figure shows the solution architecture.
Figure 1 Architecture

To use this solution, you need to:

  • Create two ECSs in different VPCs for running services.
  • Configure a security group to control traffic to and from the two ECSs.
  • Use Elastic Load Balance (ELB) to distribute incoming traffic to the two ECSs. To achieve this, create a dedicated load balancer.

Advantages

  • Flexibility

    You can deploy services across VPCs and use ELB to route requests to servers in different VPCs.

  • Robust performance

    A dedicated load balancer can handle up to tens of millions of concurrent requests, meeting your requirements for handling a massive number of requests.

  • High availability

    The health statuses of servers are regularly monitored to ensure that traffic is distributed only to healthy servers.

Constraints

  • Before deploying this solution, ensure that you have registered with Huawei Cloud and your account is not in arrears or frozen. You can estimate the total price according to Resource and Cost Planning.
  • After this solution is deployed, log in to the ECS console to reset your password. For details, see Resetting the Password for Logging In to an ECS on the Management Console.
  • Only IPv4 addresses can be added as backend servers.
  • Security group rules configured for IP as backend servers must allow traffic from the subnet of the load balancer. Otherwise, health checks will fail.