Classic Load Balancer (CLB) supports the pay-as-you-go billing method. You can release a pay-as-you-go CLB instance anytime. This topic describes the pay-as-you-go billing method and billable items of CLB.
To purchase a pay-as-you-go CLB instance, go to the buy page.
Billable items
The total amount that you must pay for a CLB instance is the sum of fees for all billable items. The fees that you are charged for a high-performance CLB instance vary based on the network type and specification. The following table describes the billable items.
Network type | Metering method | Instance type | Instance fee | Data transfer fee | Bandwidth fee | Specification fee |
---|---|---|---|---|---|---|
Internet-facing | Pay-by-data-transfer | Shared-resource | √ | √ | - | - |
High-performance | √ | √ | - | √ | ||
Pay-by-bandwidth | Shared-resource | √ | - | √ | - | |
High-performance | √ | - | √ | √ | ||
Internal-facing | - | Shared-resource | - | - | - | - |
High-performance | - | - | - | √ |
Instance fees
If you use an Internet-facing CLB instance, you are charged an instance fee for the public IP address allocated to the CLB instance. Instance fees are charged on an hourly basis. Fees are deducted in real time. If you use a CLB instance for less than 1 hour within a billing cycle, the usage duration is rounded up to 1 hour.
Instance fee for an Internet-facing CLB instance = Instance unit price (USD/hour) × Usage duration (hours)
The usage duration of a CLB instance is calculated from the time when the CLB instance is created to the time when the CLB instance is released.
The prices in the following table are provided for reference only. For more information about the actual prices, visit the buy page.
Region | Instance fee (USD/hour) |
---|---|
China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Shenzhen), China (Heyuan), and China (Chengdu) | 0.003 |
China (Hong Kong), Japan (Tokyo), UAE (Dubai), and South Korea (Seoul) | 0.009 |
US (Silicon Valley) and US (Virginia) | 0.005 |
Singapore (Singapore), Malaysia (Kuala Lumpur), Indonesia (Jakarta), India (Mumbai), UK (London), Germany (Frankfurt), Australia (Sydney), and Thailand (Bangkok) | 0.006 |
Example: You purchased an Internet-facing CLB instance at 10:00:00 (UTC+8) on November 20, 2021 in the China (Hangzhou) region and released the CLB instance at 12:34:00 (UTC+8) on November 21, 2021. The instance fee is calculated by using the following formula:
Instance unit price in the China (Hangzhou) region: USD 0.003 per hour
Usage duration: 27 hours
Instance fee = USD 0.003 per hour × 27 hours = USD 0.081
Data transfer fees
If you use an Internet-facing pay-by-data-transfer CLB instance, you are charged for the actual data transfer. You are charged only for outbound data transfer (data transfer initiated from internal). You are not charged for inbound data transfer (data transfer initiated from external). You are charged on an hourly basis. Fees are deducted in real time. If you use a CLB instance for less than 1 hour within a billing cycle, the usage duration is rounded up to 1 hour.
Internet data transfer fee = Unit price of data transfer (USD/hour) × Usage duration (hours)
The prices in the following table are provided for reference only. For more information about the actual prices, visit the buy page.
Region | Data transfer fee (USD/GB) |
---|---|
China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Shenzhen), and China (Heyuan) | 0.125 |
China (Qingdao) | 0.113 |
China (Hong Kong) | 0.156 |
US (Silicon Valley) and US (Virginia) | 0.078 |
Malaysia (Kuala Lumpur) | 0.112 |
Singapore (Singapore), Indonesia (Jakarta), India (Mumbai), and Thailand (Bangkok) | 0.117 |
Japan (Tokyo) | 0.087 |
Germany (Frankfurt) and UK (London) | 0.070 |
UAE (Dubai) | 0.447 |
Australia (Sydney) | 0.096 |
South Korea (Seoul) | 0.123 |
Example: You purchased an Internet-facing pay-by-data-transfer CLB instance at 10:00:00 (UTC+8) on November 20, 2021 in the China (Hangzhou) region and released the CLB instance at 12:34:00 (UTC+8) on November 21, 2021. The CLB instance has incurred 5 GB of outbound data transfer over the Internet after it is created.
Unit price of data transfer in the China (Hangzhou) region: USD 0.125 per GB
Outbound data transfer: 5 GB
Data transfer fee = USD 0.125 per GB × 5 GB = USD 0.625
Bandwidth fee
- The bandwidth fee for an Internet-facing pay-by-bandwidth CLB instance per day is calculated based on a tiered pricing model with 5 Mbit/s as the base bandwidth.
- If you modified the maximum bandwidth of a CLB instance within a billing cycle, you are charged based on the highest value on that day.
- Bandwidth fees are calculated based on the maximum bandwidth of CLB instances on an hourly basis. Bills are generated on a daily basis. If you use a CLB instance for less than 1 hour, the usage duration is rounded up to 1 hour. If you use a CLB instance for less than one day, you are charged based on the number of hours that the CLB instance is used. In this scenario, the fee is calculated by multiplying the hours by the unit price of the maximum bandwidth for the day.
- For pay-by-bandwidth CLB instances, the maximum inbound bandwidth is the same as the maximum outbound bandwidth.
- For pay-by-bandwidth CLB instances, fees are irrelevant to the instance status and data transfer. You are charged based on the specified bandwidth from when a pay-by-bandwidth CLB instance is created to when it is released.
For a CLB instance whose maximum bandwidth is from 1 to 5 Mbit/s, the bandwidth fee is calculated by using the following formula: Bandwidth fee = Maximum bandwidth × Bandwidth unit price × Usage duration.
For a CLB instance whose maximum bandwidth is higher than 5 Mbit/s, the bandwidth fee is calculated by using the following formula: Bandwidth fee = [5 × Unit price of bandwidth from 1 to 5 Mbit/s + (Maximum bandwidth - 5) × Unit price of bandwidth higher than 5 Mbit/s] × Usage duration.
The prices in the following table are provided for reference only. For more information about the actual prices, visit the buy page.
Region | Unit price of bandwidth from 1 to 5 Mbit/s (USD/hour) | Unit price of bandwidth from 1 to 5 Mbit/s (USD/day) | Unit price of bandwidth higher than 5 Mbit/s (USD/hour) | Unit price of bandwidth higher than 5 Mbit/s (USD/day) |
---|---|---|---|---|
China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Shenzhen), China (Heyuan), and China (Chengdu) | 0.006 | 0.144 | 0.02 | 0.48 |
China (Qingdao) | 0.005 | 0.12 | 0.016 | 0.384 |
China (Hong Kong) | 0.006 | 0.144 | 0.02 | 0.48 |
Singapore (Singapore), Indonesia (Jakarta), India (Mumbai), Malaysia (Kuala Lumpur), Germany (Frankfurt), UK (London), Australia (Sydney), Thailand (Bangkok), and South Korea (Seoul) | 0.006 | 0.144 | 0.02 | 0.48 |
Japan (Tokyo) | 0.007 | 0.168 | 0.023 | 0.552 |
UAE (Dubai) | 0.048 | 11.52 | 0.118 | 2.832 |
US (Silicon Valley) and US (Virginia) | 0.006 | 0.144 | 0.02 | 0.48 |
Example: You purchased a 2 Mbit/s Internet-facing CLB instance in the China (Hangzhou) region at 10:00:00 (UTC+8) on November 20, 2021 and changed the maximum bandwidth to 20 Mbit/s at 08:00:00 (UTC+8) on November 21, 2021. Then, you released the CLB instance at 12:34:00 (UTC+8) on November 21, 2021. The bandwidth fees are calculated by using the following formulas:
Maximum bandwidth on the day when you purchased the CLB instance: 2 Mbit/s
Maximum bandwidth on the day when you modified the maximum bandwidth of CLB instance: 20 Mbit/s
Bandwidth fee for the first day: (2 × 0.006) × 14 = USD 0.168
Bandwidth fee for the next day: [5 × 0.006 + (20 - 5) × 0.02] × 13 = USD 4.29
Total fee = 0.168 + 4.29 = USD 4.458
Specification fees
The following section describes the metrics of high-performance CLB instances. The performance guaranteed varies based on the specification.
- Maximum number of connections
The maximum number of connections that can be established to a CLB instance. When the number of existing concurrent connections reaches the upper limit, new connection requests are dropped.
- Connections per second (CPS)
The maximum number of new connections that can be established to a CLB instance per second. When the actual number reaches the upper limit, new connection requests are denied.
- Queries per second (QPS)
The maximum number of HTTP or HTTPS requests that can be processed per second. This metric is specific to Layer 7 listeners. When the actual number reaches the upper limit, new requests are denied.
The prices in the following table are provided for reference only. For more information about the actual prices, visit the buy page.
Region | Specification | Maximum number of connections | CPS | QPS | Unit price in the Chinese mainland and China (Hong Kong) (USD/hour) | Unit price outside China (USD/hour) |
---|---|---|---|---|---|---|
Chinese mainland and China (Hong Kong) | Specification 1: Small I (slb.s1.small) | 5000 | 3000 | 1000 | 0.01 | 0.012 |
Specification 2: Medium I (slb.s2.small) | 50,000 | 5,000 | 5,000 | 0.05 | 0.06 | |
Specification 3: Medium II (slb.s2.medium) | 100,000 | 10,000 | 10,000 | 0.10 | 0.12 | |
Specification 4: Large I (slb.s3.small) | 200,000 | 20,000 | 20,000 | 0.20 | 0.24 | |
Specification 5: Large II (slb.s3.medium) | 500,000 | 50,000 | 30,000 | 0.31 | 0.37 | |
Specification 6: Super Large I (slb.s3.large) | 1,000,000 | 100,000 | 50,000 | 0.51 | 0.61 |
Example: You purchased an Internet-facing CLB instance of the slb.s2.small specification at 10:00:00 (UTC+8) on November 20, 2021 in the China (Hangzhou) region and released the CLB instance at 12:34:00 (UTC+8) on November 21, 2021. The specification fee is calculated by using the following formula:
Unit price of the slb.s2.small specification in the China (Hangzhou) region: USD 0.05 per hour.
Usage duration: 27 hours
Specification fee = USD 0.05 per hour × 27 hours = USD 1.35