Creating a Load Balancer¶
Scenarios¶
You have prepared everything required for creating a load balancer. For details, see Preparations for Creating a Load Balancer.
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.
Procedure¶
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.
Click Create Elastic Load Balancer and specify the parameters by referring to Table 1.
¶ Parameter
Description
Example Value
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.
eu-ch2
Cross-VPC Backend
Specifies whether to associate backend servers that are not in the VPC of the load balancer. After this function is enabled, you can associate the backend servers with the load balancer by using their IP addresses.
Note
To use this function, configure correct VPC routes to ensure that backend servers are reachable.
If you enable the cross-VPC backend function, more IP addresses in the subnet will be occupied. Ensure that the selected subnet has sufficient IP addresses. After you select a subnet, you can view the number of IP addresses required by the load balancer in the infotip.
N/A
Network Type
Specifies the type of the network where the load balancer works. You can select one or more network types.
Public IPv4 network: The load balancer routes requests from the clients to backend servers over the Internet.
Private IPv4 network: The load balancer routes requests from the clients to backend servers in a VPC.
IPv6 network: An IPv6 address will be assigned to the load balancer to route requests from IPv6 clients.
Note
If you do not select any of the options, the load balancer cannot communicate with the clients after it is created. When you are using ELB or testing network connectivity, ensure that the load balancer has a public or private IP address bound.
Public IPv4 network
VPC
Specifies the VPC where the load balancer works. You need to configure this parameter regardless of the selected network type.
Select an existing VPC or create one.
For more information about VPC, see the Virtual Private Cloud User Guide.
vpc-4536
Subnet
Specifies the subnet where the load balancer will reside.
You need to configure this parameter regardless of the selected network type.
If you select IPv6 network for Network Type and the selected VPC does not have any subnet that supports IPv6, enable IPv6 for the subnets or create a subnet that supports IPv6. For details, see the Virtual Private Cloud User Guide.
subnet-4536
Public IPv4 network configuration
EIP
This parameter is mandatory when Network Type is set to IPv4 public network. You can use an existing EIP or apply for a new one. If you select Use existing, select an existing IP address.
New EIP: The system will assign a new EIP to the load balancer.
Use existing: Select an existing IP address.
N/A
EIP Type
Specifies the link type (BGP) when a new EIP is used.
Dynamic BGP
Name
Specifies the load balancer name.
elb93wd
Advanced Settings
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 the tag content. For details about the naming specifications, see Table 2.
A maximum of 10 tags can be added.
Key: elb_key1
Value: elb-01
¶ 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.
Only letters, digits, underscores (_), hyphens (-), at signs (@) are allowed.
elb_key1
Tag value
Can contain a maximum of 43 characters.
Only letters, digits, underscores (_), hyphens (-), at signs (@) are allowed.
elb-01
Click Create Now.
Confirm the configuration and submit your request.