An Application Load Balancer (ALB) instance is an entity that provides load balancing services. This topic describes how to create an ALB instance.
A virtual private cloud (VPC) is created. For more information, see Create a VPC with an IPv4 CIDR block.
Create an ALB instance
- Log on to the ALB console.
- On the Instances page, click Create ALB.
- On the ALB (Pay-As-You-Go) page, set the following parameters.
Parameter Description Region Select the region where you want to create the ALB instance. Network Type Select the network type of the ALB instance. The system allocates a public or private IP address to the ALB instance based on the selected network type.
- Internal: If you create an internal-facing ALB instance, a private IP address is allocated. In this case, you can access the ALB instance only over private networks.
- Public-facing: 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 instances use elastic IP addresses (EIPs) to provide services over the Internet. If you create an Internet-facing ALB instance, you are charged for EIPs, bandwidth resources, and data transfer.
VPC Select the VPC where you want to deploy the ALB instance. Zone
- Select two or more zones.
- Select a vSwitch in each zone. If no vSwitch is available, create a vSwitch as prompted.
- Optional:Select an EIP in each zone that you selected.
- Use the default setting Automatically assign EIP if no EIP is available in the zone. The system will automatically create a pay-by-data-transfer EIP and associate the EIP with your ALB instance.
- You can also specify an existing EIP to be associated with the ALB instance.
Notice You cannot associate the following EIPs with an ALB instance.
- Subscription EIPs.
- Pay-by-bandwidth EIPs.
- EIPs that are associated with EIP bandwidth plans other than the EIP bandwidth plan that is used by 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. An ALB instance that uses a static IP address 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 varies based on your workloads. An ALB instance that uses dynamic IP addresses can automatically scale on demand.
Edition Select an edition for the ALB instance.
- Basic: Basic ALB instances support basic routing features such as request forwarding 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, redirects, and rewrites.
For more information about the differences between standard and basic ALB instances,see Functions and features.
Associate with EIP Bandwidth Plan Specify 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 to purchase an EIP bandwidth plan. Then, return to the ALB buy page and click to select the EIP bandwidth plan that you purchased.Note This parameter is available only if Network Type is set to Public-facing. Internet Metering Method Pay-by-Data-Transfer (default): The maximum bandwidth is not guaranteed and the value is for reference only. In scenarios where demands outstrip resource supplies, the maximum bandwidth may be limited.Note This parameter is available only if Network Type is set to Public-facing and Associate with EIP Bandwidth Plan is not selected. Instance Name Enter a name for the ALB instance. Resource Group Select the resource group to which the ALB instance belongs. Note A service-linked role is required the first time you create an ALB instance. The service-linked role allows the ALB instance to access cloud services and resources, such as elastic network interfaces (ENIs), security groups, EIPs, and EIP bandwidth plans. For more information, see Service-linked roles for ALB.
- Click Buy Now and complete the payment.
- Return to the Instances page and select the region where the ALB instance is deployed to view the ALB instance.
What to do next
Configure a listener to listen for connection requests and forward the requests to backend servers based on a specified scheduling algorithm.