Network Load Balancer (NLB) uses the pay-as-you-go billing method. This topic describes the billable items and billing details for NLB.
Pay-as-you-go
Item | Description |
Billing | With the pay-as-you-go billing method, you use resources first and pay for them later. After each billing cycle, the system generates a bill and deducts the fee from your account. |
Billing cycle and bill generation |
|
Billable items
The total cost of an NLB instance has three components: an instance fee, an LCU fee, and an internet data transfer fee.
Network type | Instance fee | LCU fee | Internet transfer fee |
Internet-facing | Charged | Charged | Charged |
Internal-facing | Charged | Charged | Not applicable |
The limited-time promotion for a free NLB instance fee has ended. NLB instance fees have been charged since October 1, 2023.
Instance fee
You are charged for an NLB instance hourly. A billing cycle is one hour. If you use an instance for less than an hour in a billing cycle, the usage is rounded up to one hour. The billing duration starts when you create the instance and ends when you release it.
Instance fee = Instance unit price (USD/hour) × Billing duration (hours)The following prices are for reference only. For the actual prices, see the buy page.
Billable item | Unit price (USD/hour) |
Instance fee | 0.02 Note The limited-time promotion for a free NLB instance fee has ended. NLB instance fees have been charged since October 1, 2023. |
LCU fee
A load balancer capacity unit (LCU) is the smallest unit for measuring the resources that a load balancer consumes.
LCU usage
You are charged an LCU fee for an NLB instance hourly. A billing cycle is one hour. If you use the instance for less than an hour in a billing cycle, the usage is rounded up to one hour.
Hourly LCU fee = LCU unit price (USD/LCU) × Number of LCUs per hour
Number of LCUs per hour = max(LCUs for new connections, LCUs for concurrent connections, LCUs for data transfer)The performance metrics of a single LCU depend on the protocol of the NLB listener.
TCP traffic
Metric
Description
Metering interval
LCU coefficient
LCU calculation
New connections
New TCP connections established per second.
Per second
800
During a billing cycle, the system identifies the peak new connections per second and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Peak new connections / LCU coefficientConcurrent connections
Concurrent TCP connections per minute.
Per minute
100,000
During a billing cycle, the system identifies the peak concurrent connections per minute and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Peak concurrent connections / LCU coefficientData transfer
The amount of data (in GB) processed by the NLB instance for TCP requests and responses.
Per hour
1 GB
During a billing cycle, the system totals the data transferred for TCP requests and responses and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Total data transfer / LCU coefficientUDP traffic
Metric
Description
Metering interval
LCU coefficient
LCU calculation
New connections
New UDP connections established per second.
Per second
400
During a billing cycle, the system identifies the peak new connections per second and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Peak new connections / LCU coefficientConcurrent connections
Concurrent UDP connections per minute.
Per minute
50,000
During a billing cycle, the system identifies the peak concurrent connections per minute and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Peak concurrent connections / LCU coefficientData transfer
The amount of data (in GB) processed by the NLB instance for UDP requests and responses.
Per hour
1 GB
During a billing cycle, the system totals the data transferred for UDP requests and responses and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Total data transfer / LCU coefficientTCP/SSL traffic
Metric
Description
Metering interval
LCU coefficient
LCU calculation
New connections
New TCP/SSL connections established per second.
Per second
50
During a billing cycle, the system identifies the peak new TCP/SSL connections per second and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Peak new connections / LCU coefficientConcurrent connections
Concurrent TCP/SSL connections per minute.
Per minute
3,000
During a billing cycle, the system identifies the peak concurrent TCP/SSL connections per minute and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Peak concurrent connections / LCU coefficientData transfer
The amount of data (in GB) processed by the NLB instance for TCP/SSL requests and responses.
Per hour
1 GB
During a billing cycle, the system totals the data transferred for TCP/SSL requests and responses and divides this value by the LCU coefficient to determine the number of LCUs.
Number of LCUs = Total data transfer / LCU coefficient
For each listener, the dimension with the highest LCU count determines the hourly LCU consumption. The total LCU fee for an NLB instance is the sum of the LCU fees for all its listeners.
LCU unit price
The hourly LCU consumption is calculated from the actual usage after converting each dimension to LCUs. The measurement is accurate to 0.000001 LCUs. For example, if you consume 0.1 LCUs in an hour, the LCU fee for that hour is 0.1 × 0.005 = USD 0.0005.
The following prices are for reference only. For the actual prices, see the buy page.
Billable item | Unit price (USD/LCU/hour) |
load balancer capacity unit (LCU) | 0.005 |
LCU billing example
Assume that you create a pay-as-you-go NLB instance in the China (Hangzhou) region at 08:10:00 on November 2, 2022. You add TCP and UDP listeners, then release the instance at 08:50:00 on the same day. Within the billing cycle from 08:00 to 09:00, the usage data for the NLB instance is as follows:
Metric | TCP | UDP |
New connections (per second) | The peak number of new TCP connections is 4,000. LCU calculation: | The peak number of new UDP connections is 2,000. LCU calculation: |
Concurrent connections (per minute) | The peak number of concurrent TCP connections is 720,000. LCU calculation: | The peak number of concurrent UDP connections is 420,000. LCU calculation: |
Data transfer (per hour) | The total data transferred for TCP requests and responses is 10 GB. LCU calculation: | The total data transferred for UDP requests and responses is 8 GB. LCU calculation: |
In this example, the dimension with the highest LCU count for the TCP listener is data transfer (10.0 LCUs), and for the UDP listener, it is concurrent connections (8.4 LCUs).
Hourly LCU fee for the TCP listener = USD 0.005/LCU × 10.0 LCUs = USD 0.05
Hourly LCU fee for the UDP listener = USD 0.005/LCU × 8.4 LCUs = USD 0.042
Total hourly LCU fee for the NLB instance = Hourly LCU fee for the TCP listener + Hourly LCU fee for the UDP listener = USD 0.05 + USD 0.042 = USD 0.092Estimate LCU consumption
You can use the NLB LCU Calculator to estimate your LCU consumption.
Internet transfer fee
Internal-facing NLB instances do not incur an internet data transfer fee. This fee applies only to internet-facing NLB instances.
Internet-facing NLB instances use an elastic IP address (EIP) to provide services over the internet. You are charged for the associated EIP.
You can associate NLB only with pay-as-you-go EIPs that are billed by data transfer and are not part of an Internet Shared Bandwidth instance.
For more information, see Pay-as-you-go.