Introduction

Application Scenarios

HUAWEI CLOUD provides a variety of solutions. The following describes how HUAWEI CLOUD can help you build a website.

Small websites are often deployed on a single server, which handles user access, static and dynamic content, and database use, and data computing. As website services develop, database access traffic drastically increases, and a single server fails to meet the service requirements. Therefore, website applications and the database need be deployed on different servers to balance their work loads. According to national regulations, if the servers used to deploy the website are located in the Chinese mainland, Internet Content Provider (ICP) licensing is required. The domain name that is not licensed cannot be used to access the website.

To build a website, for example, a forum, the following requirements must be met:

  1. Database nodes and service nodes are deployed on different servers.
  2. The number of servers is dynamically adjusted based on service volume.
  3. Traffic is automatically distributed to multiple servers.
  4. The website must be licensed.

Solutions

HUAWEI CLOUD provides the following solutions for building a forum.

Table 1 HUAWEI CLOUD solutions

Requirement

Solution

Service

Database nodes and service nodes are deployed on different servers.

Building the website: Two Elastic Cloud Servers (ECSs) are required to replace traditional servers. One ECS works as the database node, and the other as the service node. A Virtual Private Cloud (VPC) is required to provide network resources for the two ECSs. An Elastic Volume Service (EVS) disk can be attached to the ECS as a data disk as required.

ECS

VPC

(Optional) EVS

The number of servers is dynamically adjusted based on service volume.

Configuring features: Auto Scaling (AS) policies are set based on service requirements. AS dynamically adds and removes ECSs created from the image of the service node as required to ensure stable and efficient service running.

AS

Service traffic is automatically distributed to multiple servers.

Configuring features: Elastic Load Balance (ELB) automatically distributes access traffic to multiple service nodes, achieving better fault tolerance and expanding service capabilities for applications.

ELB

Logical Architecture

  1. Bind an elastic IP address (EIP) to ECS 1 and build the database.
  2. Unbind the EIP from ECS 1, bind it to ECS 2, set up the web environment, and deploy web applications.
  3. As service traffic increases, AS adds ECSs created from the image of ECS 2 to the AS group.
  4. Visitors access the website via the EIP of the load balancer, which automatically distributes traffic to multiple ECSs.