Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: zhoumeng <zhoumeng35@huawei.com> Co-committed-by: zhoumeng <zhoumeng35@huawei.com>
16 KiB
Creating a Shared Load Balancer
Prerequisites
You have prepared everything required for creating a load balancer. For details, see Preparations for Creating a Load Balancer.
Load balancers receive requests from clients and route the requests to backend servers, which answer to these requests over the private network.
Constraints and Limitations
After a load balancer is created, the VPC cannot be changed. If you want to change the VPC, create another load balancer and select the VPC during creation.
Creating a Shared Load Balancera Load Balancer
- Log in to the management console.
- In the upper left corner of the page, click
and select the desired region and project.
- Hover on
in the upper left corner to display Service List and choose Network > Elastic Load Balancing.
On the Load Balancers page, click Create Elastic Load Balancer. Configure the parameters based on Table 1.
Table 1 Parameters for creating a shared load balancer Parameter
Description
Example Value
Type
Specifies the type of the load balancer.
Shared
Region
Specifies the region. Resources in different regions cannot communicate with each other over internal networks. For lower network latency and faster access to resources, select the nearest region.
N/A
Network Type
Specifies the network type of a load balancer.
- Public network: The load balancer routes requests from the clients to backend servers over the Internet.
- Private network: The load balancer routes requests from the clients to backend servers in the same VPC.
Private network
VPC
Specifies the VPC where the load balancer works.
Select an existing VPC or create one.
For more information about VPC, see the Virtual Private Cloud User Guide.
N/A
Subnet
Specifies the subnet that the load balancer belongs to.
N/A
Private IP Address
Specifies how you want the IP address to be assigned.
- Automatically-assigned IP address: The system automatically assigns an IPv4 address to the load balancer.
- Manually-specified IP address: Manually specify an IPv4 address to the load balancer.
Automatically-assigned IP address
EIP
Specifies the public IP address that will be bound to the load balancer for receiving and forwarding requests over the Internet.
The following options are available:
- New EIP: The system will automatically assign an EIP.
- Use existing: Select an existing EIP.
A shared load balancer can use any type of EIPs.
New EIP
Bandwidth
Specifies the bandwidth when a new EIP is used, in the unit of Mbit/s.
10 Mbit/s
Name
Specifies the load balancer name.
elb-yss0
Description
Provides supplementary information about the load balancer.
N/A
Tag
Identifies load balancers so that they can be easily found. A tag consists of a tag key and a tag value. The tag key marks a tag, and the tag value specifies specific tag content.
For details about the naming specifications, see Table 2.
- Key: elb_key1
- Value: elb-01
Table 2 Naming rules of load balancer tags Item
Requirement
Example Value
Tag key
- Cannot be left blank.
- Must be unique for the same load balancer.
- Can contain a maximum of 36 characters.
- Can contain only the following character types:
- Uppercase letters
- Lowercase letters
- Digits
- Special characters, including hyphens (-), underscores (_), and at signs (@)
elb_key1
Tag value
- Can contain a maximum of 43 characters.
- Can contain only the following character types:
- Uppercase letters
- Lowercase letters
- Digits
- Special characters, including hyphens (-), underscores (_), and at signs (@)
elb-01
- Click Create Now.
- Confirm the configuration and submit your request.