Updated on 2022-01-25 GMT+08:00

Creating a Load Balancer

Prerequisites

You have prepared everything required for creating a load balancer. For details, see Preparing for Creation.

Load balancers receive requests from clients and route them to backend servers, which answer to these requests over the private network.

Create a Load Balancer

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click Service List. Under Network, click Elastic Load Balance.
  4. On the Load Balancers page, click Create Elastic Load Balancer. Set the parameters by referring to Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Example Value

    Region

    Specifies the region of the load balancer. 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. There are two options:

    • Public network: A public network load balancer routes requests from the clients to backend servers over the Internet.
    • Private network: A private network load balancer routes requests from the clients to backend servers in a 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.

    -

    Subnet

    Specifies the subnet that the load balancer belongs to.

    N/A

    Private IP Address

    Specifies the IP address that will be bound to the load balancer. Enter an IP address if you do not select Automatic IP address allocation when selecting a subnet.

    192.168.0.2

    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.

    New EIP

    EIP Type

    Specifies the link type (BGP) when a new EIP is used.

    Dynamic BGP: When changes occur on a network using dynamic BGP, routing protocols provide automatic, real-time optimization of network configurations, ensuring network stability and optimal user experience.

    Dynamic BGP

    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

    Enterprise Project

    Provides a cloud resource management mode, in which cloud resources and members are centrally managed 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 Naming rules of load balancer tags

    Item

    Requirement

    Example Value

    Tag key

    • Cannot be empty.
    • 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 (_), hyphens (-), and Chinese characters.

    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 (_), dots (.), hyphens (-), and Chinese characters.

    elb-01

  5. Click Create Now.
  6. Confirm the configuration and click Submit.