Creating a Dedicated Load Balancer
Scenarios
You have prepared everything required for creating a dedicated load balancer. For details, see Preparation.
Load balancers receive requests from clients and route them to backend servers, which answer to these requests over the private network.
For a private network load balancer, if the client is a Xen ECS, you must select the AZ where the ECS resides when creating a dedicated load balancer. For example, if the client is an S1 ECS and it is in AZ 1, you must select AZ 1 for the dedicated load balancer. See x86 ECS Specifications for more details.
- Currently, IPv6 dedicated load balancers are available for OBT only in the following regions:
CN North-Beijing4, CN North-Beijing2, CN East-Shanghai1, CN South-Guangzhou, and AP-Singapore
- IPv6 network construction is still at the early stage. Some lines may not be accessed. If you encounter any problem, feel free to submit a service ticket. In addition, SLA is not provided during the OBT of IPv6.
- A dedicated load balancer will occupy ports and IP addresses in the VPC where it will be created. Ensure that the backend subnet in the VPC where the load balancer will be created 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.
Procedure
- Log in to the management console.
- In the upper left corner of the page, click
and select the desired region and project. - Click Service List. Under Network, click Elastic Load Balance.
- Click Create Elastic Load Balancer and specify the parameters by referring to Table 1.
Table 1 Parameter description Parameter
Description
Example Value
Type
Select Dedicated.
Dedicated
Billing Mode
Specifies the billing mode of the dedicated load balancer.
- Pay-per-use
Pay-per-use
Region
Specifies the desired region. Regions are geographic areas that are physically isolated from each other. The networks inside different regions are not connected to each other, so resources cannot be shared across different regions. For low network latency and quick resource access, select the nearest region.
-
AZ
Specifies one or more AZs of the load balancer. Select multiple AZs if you want to deploy the load balancer in multiple AZs for disaster recovery. When an AZ becomes faulty or unavailable, requests are quickly routed to backend servers in other AZs. This ensures service continuity and improves application reliability.
If there are backend servers in two AZs, for example, AZ 1 and AZ 2, and you create only one load balancer in AZ 1, Xen ECSs cannot be used as clients to access the backend servers.
NOTE:If you change the AZs of an existing load balancer, the load balancer may fail to route requests for several seconds. It is recommended that you plan the AZs in advance, or change the AZs during off-peak hours.
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 is 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.
Private IPv4 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.
vpc-4536
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
Public IPv4 network configuration
EIP
When Network Type is set to Public IPv4 network, you need to bind an EIP to the load balancer. Two options are available:
- New EIP: The system will assign a new EIP to the load balancer.
- Use existing: Select an existing EIP for the load balancer.
-
Shared Bandwidth
Specifies the bandwidth type of the EIP.
Share Bandwidth
Bandwidth
Specifies the maximum bandwidth.
100 Mbit/s
Private IPv4 network configuration
Subnet
If Network Type is set to IPv4 private network, select the subnet for creating the load balancer. By default, Automatically-assigned IP address is selected and the system automatically assigns a private IPv4 address to the load balancer.
subnet-4536
IPv4 Address
If you select Manually-specified IP address, enter an IPv4 address that is not in use.
NOTE:ACL rules configured for the subnet where the load balancer works will not affect the traffic from the clients to the load balancer. Clients can directly access the load balancer. To control access to load balancer, configure access control for all listeners added to the load balancer.
For details, see Access Control.
N/A
IPv6 network configuration
Subnet
If Network Type is set to IPv6 network, you need to select a subnet that supports IPv6. Currently, IP addresses in an IPv6 subnet can only be automatically assigned.
subnet-4537
IPv6 Address
Specifies the IPv6 address that will be bound to the load balancer.
NOTE:ACL rules configured for the subnet where the load balancer works will not affect the traffic from the clients to the load balancer. Clients can directly access the load balancer. To control access to load balancer, configure access control for all listeners added to the load balancer.
For details, see Access Control.
-
Shared Bandwidth
You can add the IPv6 address to a shared bandwidth so that the load balancer can route requests over the Internet.
-
Specification
- Select either Application load balancing (HTTP/HTTPS) or Network load balancing (TCP/UDP) or both, and then select the desired specification. You can select only one specification for Application load balancing (HTTP/HTTPS) and Network load balancing (TCP/UDP), respectively. For application load balancing, the number of IP addresses varies depending on the specification. You can view the number of IP addresses required by the load balancer in the infotip after the selected subnet.
- The performance of load balancers varies depending on the selected specifications. You can evaluate the actual traffic and select appropriate specifications based on the key metrics.
Medium II
Name
Specifies the load balancer name.
elb93wd
Enterprise Project
Centrally manages cloud resources and members by project.
default
Description
Provides supplementary information about the load balancer.
N/A
Tag
Identifies load balancers so that they can be easily categorized and quickly searched. A tag consists of a tag key and a tag value. That is, you can distinguish cloud resources from two dimensions. 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 Tag naming rules 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.
- Cannot contain asterisks (*), angle brackets (< and >), backslashes (\), equal signs (=), commas (,), vertical bars (|), or slashes (/).
- Can contain letters, digits, underscores (_), and hyphens (-).
elb_key1
Tag value
- Can contain a maximum of 43 characters.
- Cannot contain asterisks (*), angle brackets (< and >), backslashes (\), equal signs (=), commas (,), vertical bars (|), or slashes (/).
- Can contain letters, digits, underscores (_), periods (.), and hyphens (-).
elb-01
- Click Next
- Confirm the configuration and submit your request.
Last Article: Creating a Shared Load Balancer
Next Article: Modifying Load Balancer Settings
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.