An Application Load Balancer (ALB) instance is an entity that provides load balancing services. This topic describes how to create an Application Load Balancer (ALB) instance.

Prerequisites

A virtual private cloud (VPC) is created. For more information, see Create an IPv4 VPC.

Create an ALB instance

  1. Log on to the ALB console.
  2. On the Instances page, click Create ALB Instance.
  3. On the ALB (Pay-As-You-Go) International Site page, set the following parameters.
    Parameter Description
    Region Select the region where you want to deploy the ALB instance. Make sure that the ALB instance and Elastic Compute Service (ECS) instances that serve as backend servers are deployed in the same region.
    Network Type Select a network type for the ALB instance. The system allocates a public or private IP address to the ALB instance based on the network type that you select.
    • Internal: If you create an internal-facing ALB instance, a private IP address is allocated. In this case, you can access the ALB instance over only private networks.
    • Internet: If you create an Internet-facing ALB instance, a public IP address is allocated. In this case, you can access the ALB instance over the Internet. Internet-facing ALB provides services to the Internet through elastic IP addresses (EIPs). If you create an Internet-facing ALB instance, you are charged for EIPs, bandwidth resources, and data transfer.
      • If you select Automatically assign EIP, the system automatically creates a pay-as-you-go EIP and associates it with the ALB instance.
      • Alternatively, you can associate an existing EIP with the ALB instance.
        Notice You cannot associate the following EIPs with an ALB instance.
        • Subscription EIPs.
        • Pay-as-you-go EIPs that use the pay-by-bandwidth metering method.
        • EIPs that are associated with other EIP bandwidth plans.
    VPC Select the VPC where you want to deploy the ALB instance. Make sure that the ALB instance and ECS instances that serve as backend servers are deployed in the same VPC.
    Zone
    1. Select two or more zones.
    2. Select a vSwitch and an EIP for each zone.
      • If no vSwitch is available in the zone, create one as prompted.
      • If no EIP is available in the zone, you can keep the default setting Automatically assign EIP. The system automatically creates an EIP and associates it with the ALB instance.
    IP Mode Select an IP mode for the ALB instance.
    • Static IP: Only one IP address is available in each zone. The IP address cannot be changed. If you select Static IP, the ALB instance supports at most 100,000 queries per second (QPS).
    • Dynamic IP: One or more IP addresses are available in each zone. The number of IP addresses that the ALB instance uses automatically increases along with your workloads. In this mode, the ALB instance is highly scalable.
    Edition Select an edition for the ALB instance.
    • Basic: Basic ALB instances support basic routing features such as forwarding requests based on domain names, URLs, and HTTP headers.
    • Standard: Standard ALB instances support advanced routing features in addition to the features of Basic ALB instances. Standard ALB instances support custom TLS security policies, redirection, and rewriting.

    For more information about the differences between Basic and Standard ALB instances, see Features and limits of different editions.

    Associate with EIP Bandwidth Plan Select whether to associate the ALB instance with an EIP bandwidth plan. If you select Associate with EIP Bandwidth Plan, you must select an EIP bandwidth plan. If no EIP bandwidth plan is available, click Purchase EIP Bandwidth Plan and purchase an EIP bandwidth plan. Then, return to the ALB buy page and click Refresh to select the EIP bandwidth plan that you purchased.
    Note You can associate an ALB instance with only a pay-as-you-go EIP bandwidth plan.
    Billing Method Pay-By-Data-Transfer (default): The maximum bandwidth value is not a guaranteed value and is only for reference. In scenarios where demands exceed resource supplies, the maximum bandwidth may be lower than the specified value.
    Note This parameter is available only when Network Type is set to Internet and Associate with EIP Bandwidth Plan is not selected.
    Instance Name Enter a name for the instance.
    Resource Group Select the resource group to which the ALB instance belongs.
  4. Click Buy Now and complete the payment.
  5. Return to the Instances page and select the region where the ALB instance is deployed to view the ALB instance.
    The ALB instance is created

What to do next

Configure a listener for the ALB instance to check connection requests and forward the requests to backend servers based on a specified scheduling algorithm.

References