ALB billing
Application Load Balancer (ALB) uses a pay-as-you-go billing model. You are charged only for the resources you consume, with no upfront costs. This topic describes the billing details for pay-as-you-go ALB instances, including billing rules, billable items, and billing cycles.
Pay-as-you-go billing
Feature | Pay-as-you-go |
Billing rule | Charges are based on your actual usage. A bill is generated each billing cycle, and fees are deducted from your account balance. |
Purchase requirements | Your account must have a positive balance to create an ALB instance. If your account has an overdue payment, you cannot create new instances until you top up your account. |
Billing cycle and bill generation |
|
Billable items
ALB currently supports pay-as-you-go. The fees for ALB consist of three parts: instance fee, load balancer capacity unit (LCU) fee, and Internet data transfer fee.
Network type | Instance fee | LCU fee | Data transfer fee |
Public | Charged | Charged | Charged |
Private | Charged | Charged | Not applicable |
Instance fee
The ALB instance fee is billed hourly. Usage for less than an hour is rounded up to one hour. Billing starts when the instance is created and ends when it is released.
Instance fee = Unit price per instance (USD/hour) × Billed duration (hours)The prices in the following table are for reference only. For the actual price, see the buy page.
Edition | Unit price (USD/hour) |
Basic | 0.007 |
Standard | 0.021 |
WAF-enabled | 0.035 |
Load balancer capacity unit (LCU) fee
A load balancer capacity unit (LCU) is the smallest unit used to measure the resources consumed by a load balancer.
LCU dimensions
The ALB LCU fee is billed hourly. Usage for less than an hour is rounded up to one hour.
LCU fee per hour = max(LCUs for new connections, LCUs for concurrent connections, LCUs for data transfer, LCUs for rule evaluations) × LCU unit priceEach hour, LCU consumption is calculated across four dimensions. You are billed based on the dimension with the highest consumption.
Dimension | Description | Measurement interval | LCU coefficient | Hourly LCU calculation |
New connections | The number of new connections processed per second. | Per second | 25 | Each hour, the system finds the peak number of new connections per second and divides this value by the LCU coefficient to calculate the LCUs for this dimension. The formula is as follows: |
Concurrent connections | The number of concurrent connections per minute. | Per minute | 3,000 | Each hour, the system finds the peak number of concurrent connections per minute and divides this value by the LCU coefficient to calculate the LCUs for this dimension. The formula is as follows: |
Data transfer | The volume of data in GB that ALB processes for HTTP and HTTPS requests and responses. | Per hour | 1 GB | During each billing cycle, the system totals the volume of data processed for requests and responses and divides it by the LCU coefficient to determine the number of LCUs for this dimension. The formula is as follows: |
Rule evaluations | The product of the total number of rules that ALB processes and the queries per second (QPS).
Important
| N/A | 1,000 | During each billing cycle, the system calculates rule evaluations based on the total number of forwarding rules and the peak QPS. The result is divided by the LCU coefficient to determine the number of LCUs for this dimension. The formula is as follows: |
For each listener, the hourly LCU consumption is based on the dimension with the highest usage. The total LCU fee for an ALB instance is the sum of the LCU fees for all its listeners.
LCU unit price
For billing purposes, the highest LCU value calculated among the four dimensions in a given hour is used. The minimum precision is 0.000001 LCU. For example, if you consume 0.1 LCU in an hour, the LCU fee for that hour is 0.1 × 0.007 = USD 0.0007.
The prices in the following table are for reference only. For the actual price, see the buy page.
Billable item | LCU unit price (USD/LCU/hour) |
Load balancer capacity unit (LCU) | 0.007 |
LCU billing example
Dimension | Example scenario | Calculation | LCU consumption |
New connections (per second) | Within a specific hour, the peak number of new connections created in a single second is 100. | In this example, the peak is 100 new connections per second. Each LCU provides 25 new connections per second. The number of LCUs is: | 4.0 |
Concurrent connections (per minute) | The peak number of concurrent connections within that hour is 18,000. | In this example, the peak number of concurrent connections within the hour is 18,000. The number of LCUs is: | 6.0 |
Data transfer (per hour) | 1,000 KB per second | The data transfer rate is 1,000 KB per second. The total data processed per hour is: Each LCU provides 1 GB of data transfer per hour. The number of LCUs is: | 3.6 |
Rule evaluations (per second) |
| In the hour with the peak of 100 new connections per second, each connection sends 4 requests per second. The QPS is:
Each LCU provides 1,000 rule evaluations per second. The number of LCUs is: | 4.8 |
In this example, the dimension with the highest LCU consumption is concurrent connections (6.0 LCUs). Therefore, the LCU fee is calculated based on this dimension.
LCU fee per hour = USD 0.007/LCU × 6.0 LCUs = USD 0.042
Based on this usage, the estimated average monthly LCU fee is: USD 0.042 × 24 hours × 30 days = USD 30.24Estimate LCU consumption
You can use the ALB LCU Calculator to estimate your LCU consumption.
Internet data transfer fee
An internal-facing ALB instance does not incur an Internet data transfer fee. This fee applies only to an Internet-facing ALB instance. Internet-facing ALB instances use Elastic IP Addresses (EIPs) to provide services over the internet. Using an Internet-facing ALB instance incurs both EIP instance fees and data transfer fees. For more information, see Pay-as-you-go.
In this example, the number of forwarding rules and additional certificates exceeds the free quotas. The number of billable rule evaluations per second is: