This topic describes the billable items and pricing of Application Load Balancer (ALB).
Billable items of ALB
ALB supports the pay-as-you-go billing method. Total fees for an ALB instance: instance fee, Load Balancer Capacity Unit (LCU) fee, and fee for data transfer over the Internet.
Network type | Instance fee | LCU fee | Fee for data transfer over the Internet |
---|---|---|---|
Internet-facing | Charged | Charged | Charged |
Internal-facing | Charged | Charged | N/A |
Instance fee
You are charged an instance fee on an hourly basis. If an ALB instance is used for less than 1 hour, the usage duration is rounded up to 1 hour. You are charged an instance fee from when the ALB instance is created to when it is released.
Edition | Instance fee (USD/hour) |
---|---|
Basic | 0.007 |
Standard | 0.021 |
LCU fee
An LCU measures the dimensions in which ALB processes traffic.
The following table describes the dimensions.
Dimension | Description | LCU coefficient | Formula |
---|---|---|---|
Number of new connections | The number of new connections per second. | 25 connections per second | Number of new connections/25 |
Number of concurrent connections | The number of active connections per minute. | 3,000 connections per minute | Number of concurrent connections/3,000 |
Data transfer | The data transfer over HTTP and HTTPS processed by ALB. Unit: GB. | 1 GB per hour | Data transfer/1 |
Number of rule evaluations | The product of the number of specific items processed by an ALB instance and queries per second (QPS). These items include forwarding rules, lines
of code in AScript, and additional certificates.
Notice
|
1,000 | Number of rule evaluations/1,000 |
The number of LCUs that are consumed by an ALB instance per hour is calculated in the preceding dimensions. The highest number of LCUs consumed among the four dimensions is charged.
LCU fee = max{Number of LCUs for new connections, Number of LCUs for concurrent connections, Number of LCUs for data transfer, Number of LCUs for rule evaluations} × LCU unit price
Billable item | LCU unit price (USD/LCU) |
---|---|
LCU | 0.007 |
Billing example
Dimension | Example | Formula | Number of LCUs consumed |
---|---|---|---|
Number of new connections per second | 100 new connections per second. | In this example, 100 new connections are established per second. Every 25 new connections
consumes an LCU per second. The total number of LCUs used for new connections is:
|
4 |
Number of concurrent connections per minute | Every connection lasts 3 minutes. Four requests are sent through each connection per second. | In this example, 100 new connections are established per second. The number of new
connections per minute is:
The number of concurrent connections per minute is equal to the number of new connections
within the last 3 minutes.
Every 3,000 concurrent connections consumes an LCU per minute. The total number of
LCUs used for concurrent connections is:
|
6 |
Data transfer per hour | 1,000 KB per second. | The data transfer processed per hour is: One GB of data transfer consumes an LCU per hour. The total number of LCUs used for
data transfer is:
|
3.6 |
Number of rule evaluations per second |
|
One hundred new connections are established per second. Four requests are sent through
each connection per second. The number of requests received per second is: In this example, the number of forwarding rules and the number of additional certificates
configured exceed the quota. The number of rule evaluations is: Every 1,000 rule evaluations consumes an LCU per second. The total number of LCUs
used for rule evaluations is:
|
4.8 |
In this example, the concurrent connections consume the highest number of LCUs, which is 6. Therefore, the LCU fee for the ALB instance is calculated based on the number of concurrent connections.
LCU fee per hour = USD 0.007/LCU × 6 = USD 0.042
LCU fee per month = USD 0.042 × 24 (hours) × 30 (days) = USD 30.24
You can use the LCU calculator to calculate the number of LCUs consumed by an ALB instance.
Fee for data transfer over the Internet
You are not charged for data transfer over the Internet if you use internal-facing ALB instances. You are charged for data transfer over the Internet only if you use Internet-facing ALB instances. Internet-facing ALB instances use elastic IP addresses (EIPs) to provide services over the Internet. If you use an Internet-facing ALB instance, you are charged an instance fee and a bandwidth fee or a data transfer fee for the EIP. For more information, see Pay-as-you-go.