Gateway Load Balancer (GWLB) supports the pay-as-you-go billing method. This topic describes the billable items and billing rules of GWLB.
Billing rules
Item | Description |
Billing rules | The pay-as-you-go billing method allows you to use resources before you pay for them. Bills are generated and fees are deducted after each billing cycle. |
Billing cycles and bill generation time | GWLB instances and Load Balancer Capacity Units (LCUs) are billed at the top of every hour. An entire hour is a billing cycle. You are charged based on resource usage. During a billing cycle, if you use the service for less than 1 hour, the usage duration is rounded up to 1 hour for billing. For example, if you create a pay-as-you-go GWLB instance at 09:30:00 and release it at 12:30:00, the billing of the GWLB instance starts from 09:00:00 and stops at 13:00:00, which lasts 4 hours. In most cases, bills are generated 1 hour after a billing cycle ends. The time when bills are generated is determined by the system. |
Billable items of GWLB
GWLB charges the following:
GWLB must work with GWLB endpoints. GWLB endpoints are separately priced and billed by the PrivateLink service. For more information, see Billing overview.
Instance fee
You are charged GWLB instance fees based on the largest number of zones you use during a billing cycle, which is 1 hour. If the usage duration in a billing cycle is less than 1 hour, the usage duration is rounded up to 1 hour. The usage duration refers to the period of time from when an GWLB instance is created to when the GWLB instance is released.
For a billing cycle:
Instance fee = Instance unit price (USD per zone) × Largest number of zones you useThe prices in the following table are for reference only. The actual prices on the Bill Details page in the Expenses and Costs console shall prevail. For more information about viewing your bills, see Query billing and spending details.
Region | Instance unit price (USD/zone) |
China (Ulanqab), China (Hangzhou), China (Shanghai), China (Beijing), China (Shenzhen), China (Hong Kong), Singapore, Malaysia (Kuala Lumpur), Japan (Tokyo), and UAE (Dubai) | 0.014 |
SAU (Riyadh - Partner Region) | 0.017 |
Example: You create a GWLB instance in a single zone in the China (Hong Kong) region at 09:05:00, deploy it in another zone at 10:30:00, and release it at 10:50:00. Then:
First billing cycle (09:05:00~10:00:00): The maximum number of zones you use is 1, and the instance fee is 0.014×1=0.014 USD.
Second billing cycle (10:00:00~10:50:00): The maximum number of zones you use is 2, and the instance fee is 0.014×2=0.028 USD.
Total instance fee: 0.014+0.028=0.042 USD.
LCU fee
An LCU is the smallest measurement for the resources consumed by GWLB instances.
LCU usage calculation
GWLB charges LCU fees on an hourly basis. The billing cycle is 1 hour. If the usage duration in a billing cycle is less than 1 hour, the usage duration is rounded up to 1 hour.
LCU fee per hour = LCU unit price (USD/LCU) × Number of LCUs consumed per hour
Number of LCUs consumed per hour = max {Number of LCUs for new connections (or flows), Number of LCUs for concurrent connections (or flows), Number of LCUs for data transfer}The following table describes the performance metrics of a single LCU.
Metric | Description | Unit | LCU coefficient | How the number of LCUs consumed per hour is calculated |
New connections (or flows) | The number of new connections (or flows) per second. | Seconds | 600 | The system collects all numbers of new connections (or flows) per second within a billing cycle and divides the largest number by the LCU coefficient to calculate the number of LCUs. The number of LCUs is calculated by using the following formula: |
Concurrent connections (or flows) | The number of concurrent connections (or flows) per minute. | Minutes | 60,000 | The system collects all numbers of concurrent connections (or flows) per minute within a billing cycle and divides the largest number by the LCU coefficient to calculate the number of LCUs. The number of LCUs is calculated by using the following formula: |
Data transfer | The amount of data transfer processed by GWLB. Unit: GB. | Hours | 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: |
The number of LCUs that are consumed by a GWLB listener per hour is calculated based on the dominant metric.
LCU unit price
After the hourly metrics of a GWLB instance are converted into LCUs, the hourly LCU consumption is calculated based on the actual usage. The LCU consumption is accurate to 0.000001 LCUs.
The prices in the following table are for reference only. The actual prices on the Bill Details page in the Expenses and Costs console shall prevail. For information about viewing your bills, see Query billing and spending details.
Region | LCU unit price (USD/LCU/hour) |
China (Ulanqab), China (Hangzhou), China (Shanghai), China (Beijing), China (Shenzhen), China (Hong Kong), Singapore, Malaysia (Kuala Lumpur), Japan (Tokyo), and UAE (Dubai) | 0.004 |
SAU (Riyadh - Partner Region) | 0.005 |
Estimate LCU consumption
You can use the GWLB LCU Calculator to estimate how many LCUs your service will consume.
Billing examples
Example 1: Deploying a GWLB instance in a single zone and associating it with a single GWLB endpoint
Assume that a GWLB instance is deployed in one zone in the China (Hong Kong) region and is associated with one GWLB endpoint. The GWLB endpoint, or the GWLB instance, receives 3,000 new connections per second, each lasting 2 minutes, and processes 1,000 KB of data transfer per second.
Metric | Calculation | LCU consumption |
New connections (or flows) (in seconds) | In this example, the largest number of new connections per second for the GWLB instance is 3,000. Every 600 new connections consume an LCU per second. The number of LCUs that are consumed is calculated by using the following formula: | 5.0 |
Concurrent connections (or flows) (in minutes) | In this example, the largest number of concurrent connections per minute for the GWLB instance is calculated by using the following formula: Every 60,000 concurrent connections consume an LCU per minute. The number of LCUs that are consumed is calculated by using the following formula: | 6.0 |
Data transfer (in hours) | In this example, 1,000 KB of data transfer is processed per second. The data transfer processed per hour is calculated using the following formula: Every 1 GB of data transfer consumes an LCU per hour. The number of LCUs that are consumed is calculated by using the following formula: | 3.6 |
In this example, the calculation of the fees for each billable item involved and the total fee is as described in the following table.
The prices of billable items in this example are for reference only. The actual prices on the Bill Details page in the Expenses and Costs console shall prevail. For actual prices of GWLB endpoints, see Billing overview.
Billable item | Calculation |
GWLB billing |
|
GWLB endpoint billing |
|
Total fee | Total fee (sum of total GWLB fee and total GWLB endpoint fee): |
Example 2: Deploying a GWLB instance in multiple zones and associating it with multiple GWLB endpoints
Assume that a GWLB instance is deployed in two zones in the China (Hong Kong) region and is associated with four GWLB endpoints. A GWLB endpoint receives 300 new connections per second, each lasting 4 minutes, and processes 500 KB of data transfer per second.
Metric | Calculation | LCU consumption |
New connections (or flows) (in seconds) | In this example, the largest number of new connections per second for the GWLB instance is calculated using the following formula: Every 600 new connections consume an LCU per second. The number of LCUs that are consumed is calculated using the following formula: | 2.0 |
Concurrent connections (or flows) (in minutes) | In this example, the largest number of concurrent connections per minute for the GWLB instance is calculated using the following formula: Every 60,000 concurrent connections consume an LCU per minute. The number of LCUs that are consumed is calculated using the following formula: | 4.8 |
Data transfer (in hours) | 500 KB of data transfer is processed per second. The data transfer processed per hour is calculated using the following formula: Every 1 GB of data transfer consumes an LCU per hour. The number of LCUs that are consumed is calculated using the following formula: | 1.8 |
In this example, the calculation of the fees for each billable item involved and the total fee is as described in the following table.
The prices of each billable item in this example are for reference only. The actual prices on the Bill Details page in the Expenses and Costs console shall prevail. For actual prices of GWLB endpoints, see Billing overview.
Billable item | Calculation |
GWLB billing |
|
GWLB endpoint billing |
|
Total fee | Total fee (sum of total GWLB fee and total GWLB endpoint fee): |