Application Load Balancer (ALB) supports the payasyougo billing method. The payasyougo billing method allows you to use resources and pay for them afterward. This topic describes the billing rules, billable items, and billing cycles of payasyougo ALB instances.
Overview
Feature  Payasyougo 

Billing rule  You are charged based on resource usage. Bills are generated and fees are deducted from your account balance at the end of each billing cycle. 
Billing cycles and bill generation time 

Billable items
ALB supports the payasyougo billing method. The billable items of ALB include instances, LCUs, and Internet data transfer.
Network type  Instance fee  LCU fee  Internet data transfer fee 

Internetfacing  Charged  Charged  Charged 
Internalfacing  Charged  Charged  Not charged 
Instance fees
You are charged an instance fee for an ALB instance on an hourly basis. If you use an ALB instance for less than 1 hour in a billing cycle, the usage duration is rounded up to 1 hour. Billing begins when the instance is created and ends when the instance is released.
Instance fee = Instance unit price (USD/hour) × Duration of usage (hours)
The prices listed in the following table are for reference only. The actual prices on the buy page shall prevail.
Edition  Instance fee (USD/hour) 

Basic  0.007 
Standard  0.021 
WAFenabled  0.035 
LCU fees
A Load Balancer Capacity Unit (LCU) is the smallest unit used to measure resources consumed by ALB instances.
Performance indicators
LCU fee per hour = 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
The number of LCUs consumed per hour is calculated based on four indicators. You are charged based on the largest number of LCUs among the indicators. The following table describes the indicators.
Indicator  Description  Time unit  LCU coefficient  Calculation 

Number of new connections  The number of new connections per second (CPS).  Second  25  The system collects all CPS values within a billing cycle and then divides the highest CPS value by the LCU coefficient to calculate the number of LCUs. The number of LCUs is calculated by using the following formula:

Number of concurrent connections  The number of concurrent connections (CONNS) per minute.  Minute  3,000  The system collects all CONNS values within a billing cycle and then divides the highest CONNS value by the LCU coefficient to calculate the number of LCUs. The number of LCUs is calculated by using the following formula:

Data transfer  The data transfer over HTTP and HTTPS processed by ALB. Unit: GB.  Hour  1 GB  The system divides the total amount of data transfer within a billing cycle by the LCU coefficient to calculate the number of LCUs. The number of LCUs is calculated by using the following formula:

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.
Important
 N/A  1,000  The system collects the number of forwarding rules and all QPS values within a billing cycle and uses the highest QPS value to calculate the number of rule evaluations. Then, the system divides the number of rule evaluations by the LCU coefficient to calculate the number of LCUs. The number of LCUs is calculated by using the following formula:

LCU unit price
After the hourly indicators of an ALB instance are converted into LCUs, the hourly LCU consumption is calculated based on the actual usage. The LCU consumption is accurate to 0.000001 LCU. For example, if you consume 0.1 LCU in an hour, the LCU fee for that hour is calculated by using the following formula: 0.1 × 0.007 = USD 0.0007.
The prices listed in the following table are for reference only. The actual prices on the buy page shall prevail.
Billable item  LCU unit price (USD/LCU) 

LCU  0.007 
LCU billing example
Indicator  Example  Formula  Number of LCUs consumed 

CPS (second)  A maximum of 100 new connections are established per second in an hour.  In this example, the CPS value is 100. Every 25 connections consume an LCU per second. Therefore, the number of LCUs that are consumed is:
 4.0 
CONNS (minute)  A maximum of 18,000 concurrent connections are established in that hour.  In this example, the CONNS value is 18,000. The number of LCUs that are consumed is:
 6.0 
Data transfer (hour)  1,000 KB per second.  The data transfer processed per hour is: One GB of data transfer consumes an LCU per hour. The number of LCUs that are consumed is:
 3.6 
Number of rule evaluations (second) 
 A maximum of 100 new connections are established per second in that hour. Four requests are sent through each connection. Therefore, the number of requests received 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 consume an LCU per second. The total number of LCUs used for rule evaluations is:
 4.8 
LCU fee per hour = USD 0.007/LCU × 6.0 LCUs = USD 0.042
LCU fee per month = USD 0.042 × 24 (hours) × 30 (days) = USD 30.24
Estimate LCU consumption
You can use the LCU calculator to estimate the number of LCUs consumed by your ALB service.
Internet data transfer fee
You are not charged Internet data transfer fees if you use internalfacing ALB instances. You are charged Internet data transfer fees only if you use Internetfacing ALB instances. Internetfacing ALB instances use EIPs to provide services over the Internet. If you use an Internetfacing ALB instance, you are charged an instance fee and a bandwidth fee or a data transfer fee. For more information, see Payasyougo.