Elastic Resource Pools
Billing Modes
Elastic resource pools provide compute resources for DLI jobs. Elastic resource pools support the following billing modes:
- Pay-per-use: Pay-per-use is a postpaid mode. Dedicated Resource Mode is selected by default. Resources are not released when idle.
Dedicated resources are billed by the calendar hour based on the CUs purchased since they are created. The billing is calculated in seconds and settled hourly. Computing fee = Unit price x Number of CUs purchased x Number of hours
Pay-per-use billing is applicable to test projects with low resource consumption, as it results in lower costs.
- Yearly/Monthly: DLI enables you to buy a CUH package for an elastic resource pool, and you will be billed by CUH when you submit jobs in the pool after purchasing the package. You are advised to combine yearly/monthly (CUH) with pay-per-use when purchasing an elastic resource pool.
If you purchase a CUH package for an elastic resource pool, your resource usage will first be deducted from the included quota, and any additional usage beyond the package limit will be billed on a pay-per-use basis. The included quota will reset based on the subscription period. See Yearly/Monthly Billing for more information on yearly/monthly billing.
This section describes the billing rules of pay-per-use DLI elastic resource pools.
Application Scenarios
- Pay-per-use billing: Pay-per-use is suitable for test projects with random jobs, small data volume, and low resource consumption, as it results in lower costs and does not require any prepayment.
Constraints and Limitations
- Pay-per-use dedicated elastic resource pools are billed by calendar hour since they are created. Dedicated Resource Mode is selected by default for pay-per-use billing for elastic resource pools.
- Elastic resource pools are billed by the second and settled hourly, with hours calculated on the hour.
- Pay-per-use elastic resource pools are billed based on the number of CUs purchased, rather than the CUs utilized to execute jobs.
- A pay-per-use elastic resource pool can be deleted one hour after it is created.
- You can combine pay-per-use with yearly/monthly (CUH packages). Your resource usage will first be deducted from the quota included in your CUH package, and any additional usage beyond the package limit will be billed on a pay-per-use basis. The quota included in the CUH package for an elastic resource pool will reset every month.
- If the consumption of resources in a single billing cycle is less than 1CU for an elastic resource pool, it will be rounded up to 1CU.
- The scaling in or out of an elastic resource pool starts counting time after the scaling is successfully completed, not from the time when the scaling process begins.
- After the queue is scaled out for the elastic resource pool, the system starts billing you for the added CUs.
When there is no demand for certain CUs due to business adjustments, it is important to release them promptly; otherwise, they will continue to incur charges.
- Queues in an elastic resource pool are not charged separately; the billing is based on the elastic resource pool as a whole for the compute resources used.
Billing Rules
Billing rules for elastic resource pools vary depending on the billing mode.
Billing Mode |
Resource |
Description |
---|---|---|
Pay-per-use |
Elastic resource pool |
Computing fee = Unit price x Number of CUs x Number of hours Pay-per-use dedicated DLI elastic resource pools are billed by the calendar hour based on the CUs purchased since they are created, regardless of whether there are any jobs running on them. |
Assume that you purchase a pay-per-use queue. At the bottom of the purchase page, you will find a breakdown of the costs, which will include the CU range based on your selected configuration and the calculated configuration fees for the purchase duration.
Billing Examples
The prices are just examples. The actual prices are those displayed on DLI Pricing Details.
Example: Pay-per-use dedicated elastic resource pool (including billing examples in scaling scenarios)
- start_time: time when the elastic resource pool is successfully created and in the Available state.
- start_time_next: next hour after the time when the elastic resource pool is successfully created and in the Available state. For example, if start_time is 09:45, the value of start_time_next is 10:00:00.
- end_time: time when the elastic resource pool is successfully deleted.
- end_time_before: the hour before the time when the elastic resource pool is successfully deleted. For example, if end_time is 14:25, the value of end_time_before is 14:00:00.
- Creation period = start_time_next – start_time
- Usage period = end_time_before – start_time_next
- Deletion period = end_time – end_time_before
Computing fee = Unit price x Number of CUs x Number of hours
The billing on the elastic resource pool by CUH differs in the three periods. For details, see the scenario description listed in Table 2.
Impact of Arrears
Figure 2 shows the statuses a pay-per-use DLI queue can have throughout its lifecycle. Once you purchase a DLI queue, it will be considered valid during the billing cycle as long as it operates normally. However, if your account exceeds the expenditure quota, the queue will gradually enter the grace period and retention period.
Arrears Reminder
The system deducts fees from your account balance for pay-per-use resources at the end of each billing cycle. You will be notified by email, SMS, or internal messages when your account exceeds the expenditure quota.
Impact of Arrears
Your resources enter the grace period and you cannot submit jobs in DLI, including SQL, Spark, and Flink jobs. You will need to pay for the fees incurred during the grace period, which you can see on the Billing & Costs > Billing Center > Overview page of the Huawei Cloud console.
If you do not bring your account balance current before the grace period expires, your resources will enter the retention period and become frozen. You cannot perform any operations on the pay-per-use resources during this period.
If you do not bring your account balance current before the retention period ends, your resource will be released and the data cannot be restored.
For details about expenditure quotas, see Expenditure Quota.
Combination of Pay-per-Use and Yearly/Monthly
DLI allows you to use yearly/monthly and pay-per-use together.
If you purchase a CUH package for an elastic resource pool, your resource usage will first be deducted from the included quota, and any additional usage beyond the package limit will be billed on a pay-per-use basis. The quota included in the CUH package for an elastic resource pool will reset every month.
For details about how to use a package, see Yearly/Monthly Billing.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.