Getting Started with ELB in Six Steps
Getting Started with ELB in Six Steps
Preparations
Create a HUAWEI ID, complete real-name authentication, and ensure your account has sufficient balance to purchase required resources.
Creating ECSs
Create two ECSs on the ECS console.
Deploying Your Application
Deploy your workloads on the two ECSs.
Creating a Load Balancer
Create a load balancer on the ELB console.
Adding a Listener
Add a listener to the created load balancer.
Verify Load Balancing
Verify that the load balancer can route requests across the two ECSs.
Best Practices
Best Practices
Locating an Unhealthy Backend Server Using Access Logs
With Log Tank Service (LTS), you can view logs of requests to load balancers at Layer 7 and analyze response status codes to quickly locate unhealthy backend servers.
Viewing Traffic Usage
For livestreaming platforms, traffic often increases suddenly, which make the service unstable. To address this issue, most of them use ELB to distribute traffic. By working with Cloud Eye, ELB allows you to monitor the traffic usage in real time. You can view the traffic consumed by the EIPs bound to public network load balancers to better balance your application workloads.
Routing Traffic to Backend Servers in Different VPCs from the Load Balancer
Dedicated load balancers support hybrid load balancing. You can add servers in the VPC where the load balancer is created, in a different VPC, or in an on-premises data center, by using their private IP addresses, to the backend server group of this load balancer. In this way, incoming traffic can be flexibly distributed to cloud servers and on-premises servers.
Using Advanced Forwarding for Application Iteration
As the business grows, you may need to upgrade your application based on user feedback. In this process, you can use advanced forwarding to redirect requests from users to both the new and old version first. When the application of the new version runs stably, direct all the requests to the new version.