检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Querying the ID of an ECS Used as a Backend Server Scenarios Call APIs to obtain the ID of an ECS used as a backend server of a load balancer. Prerequisites You have created a load balancer, a backend server group, and a backend server.
ECS Configurations Configuring the network parameters for the two ECSs Parameter Example Value Description ECS Name ECS01 ECS02 Names of each ECS. Set them to ECS01 and ECS02. Region CN-Hong Kong The region where the ECSs are deployed. Select the same region as that of vpc-A.
Configuring AS - Creating an AS configuration An AS configuration is an ECS template in the AS group, specifying specifications of the ECS to be added. Create an AS configuration, for example, as-config-discuz.
Preparations Purchase an ECS (ECS-client) as the client and bind an EIP to it. For details about how to purchase an ECS, see Purchasing and Using a Linux ECS (New Edition). Create a VPC (VPC-Test-01) with two subnets (subnet-frontend and subnet-backend).
ELB and Other Services Table 1 Related services Service Name Function Reference Elastic Cloud Server (ECS) Provides servers to run your applications in the cloud. Configure load balancers to route traffic to the servers or containers.
Private IP address: 10.1.0.9 1 EIP EIP-Test The EIP bound to ELB-Test: 120.46.131.153 1 ECS ECS-Test The ECS that is running in vpc-peering.
Solution Architecture If your company deploys a gRPC application on an ECS in a region and creates a load balancer in the VPC where the ECS is running, you can add an HTTPS listener to the load balancer, create a gRPC backend server group, and add the ECS to this backend server group
Solution Architecture If your website is deployed on an ECS, you can deploy a load balancer on the origin server of the ECS, and add the EIP of the load balancer to a CNAD advanced instance to protect your website against DDoS attacks.
Destination: 172.18.0.0/24 1 ELB ELB-Test The dedicated load balancer to distribute incoming traffic. 1 EIP EIP-Test The EIP bound to ELB-Test: 119.3.233.52 1 ECS ECS-Test The ECS that is running in VPC-Test-02.
Figure 1 Service architecture with IPv4/IPv6 translation enabled for TCP and UDP listeners Prerequisites You have purchased an ECS (ECS01). The primary network interface of the ECS uses an IPv4 address. You have deployed an application on ECS01.
Examples Creating a Dedicated Load Balancer and Binding a New EIP to It Adding a Listener to a Dedicated Load Balancer Deleting a Dedicated Load Balancer Creating a Public Network (Shared) Load Balancer Querying the ID of an ECS Used as a Backend Server
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
Item Fill in the Details Load balancer ID - VPC ID - Load balancer IP address - Listener ID - Frontend protocol and port - Health check protocol and port - Health check result - ID of ECS 1 - ID of ECS 2 - Parent topic: Access Logging
In the ECS list, click the name of the target ECS. The page providing the details about the ECS is displayed. Click the Security Groups tab, locate the security group, click its name, and view security group rules.
(An ECS is used as an example here.) Use ifconfig or ip address to view the IP address. For Windows ECSs, use ipconfig on the CLI. Ping the gateway of the subnet where the ECS resides to check for network connectivity.
The first ECS (ECS_client) is used as the client to send HTTP requests, and the second ECS (ECS_server) is used as the backend server for deploying the web application. You have purchased a certificate or uploaded a third-party certificate to SSL Certificate Manager (SCM).
Locate the ECS and click its name. Under EIPs, click Bind EIP. Select the EIP to be bound and click OK. Verify that the ECS can be accessed through the EIP. For Linux ECSs, use curl. For Windows ECSs, use a browser. Parent topic: Backend Servers
ECS01 ECS Used to deploy the application of the old version and added to Server_Group-Test01. ECS02 ECS Used to deploy the application of the old version and added to Server_Group-Test01.
For example, if the ECS uses port 80, use curl to check whether network connectivity is normal. Parent topic: Backend Servers