Billing Examples
Billing Scenario
A user purchased a pay-per-use CCE cluster for migrating data to the cloud. The following table lists the resources and configuration of the cluster.
Resource Type |
Billing Start Time |
Original Billing Mode |
Original Configuration |
Quantity |
---|---|---|---|---|
Cluster |
March 18, 2023, 15:30:00 |
Pay-per-use |
|
1 |
ECS |
March 18, 2023, 15:40:00 |
Pay-per-use |
|
1 |
Load balancer |
March 19, 2023, 09:20:00 |
Pay-per-use |
|
1 |
After a period of time, the user found that the current specifications no longer met service requirements and updated the specifications.
- The user hibernated the cluster and stopped the node in the cluster at 17:30:00 on March 18, 2023.
- At 08:30:00 on March 19, 2023, the user woke up the cluster and started the node.
- When deploying services in the cluster, the user used a load balancer automatically created at 09:20:00 on March 19, 2023.
- At 09:40:00 on March 19, 2023, the user expanded the existing node flavor to c7.xlarge.2 (4 vCPUs, 8 GiB) due to insufficient resources.
- After the test, the automatically created load balancer was deleted at 10:20:00 on March 20, 2023 because it was no longer used. During the deletion, 5 GB public network traffic was generated.
- After the verification, the user planned to migrate services to CCE and predicted that the cluster scale would be 50 to 200 worker nodes. Therefore, the user changed the cluster scale to 200 worker nodes at 10:30:00 on March 20, 2023.
- The user changed the billing mode of the cluster to yearly/monthly at 11:00:00 on March 20, 2023 for a long-term use of this cluster. The validity period was one month, and the cluster expired at 23:59:59 on April 20, 2023.
- The billing mode of the node in the cluster also changed to yearly/monthly at 11:10:00 on March 20, 2023. The subscription duration was one month, and the node expired at 23:59:59 on April 20, 2023.
The price can be analyzed based on resource types as follows:
Billing Analysis of a Cluster
Usage Period |
Billing Mode |
Required Duration |
Configuration |
Unit price |
Price* |
---|---|---|---|---|---|
March 18, 2023, 15:30:00 to March 18, 2023, 17:30:00 |
Pay-per-use |
2 hours |
|
$0.42 USD/hour |
2 x 0.42 = $0.84 USD |
March 18, 2023, 17:30:00 to March 19, 2023, 8:30:00 |
Pay-per-use |
0 hours (Bills will not be generated for the management of a hibernated cluster.) |
|
$0.42 USD/hour |
$0 USD |
March 19, 2023, 08:30:00 to March 20, 2023, 10:30:00 |
Pay-per-use |
26 hours |
|
$0.42 USD/hour |
26 x 0.42 = $10.92 USD |
March 20, 2023, 10:30:00 to March 20, 2023, 11:00:00 |
Pay-per-use |
0.5 hour |
|
$0.87 USD/hour |
0.5 x 0.87 = $0.43 USD |
March 20, 2023, 11:00:00 to April 20, 2023, 23:59:59 |
Yearly/Monthly |
One month |
|
$460.39 USD/month |
$460.39 USD |
*In pay-per-use billing mode, the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.
The total price of the cluster is 0.84 + 10.92 + 0.43 + 460.39 = $472.58 USD.
Billing Analysis of a Node
Usage Period |
Billing Mode |
Required Duration |
Configuration |
Unit price |
Price* |
---|---|---|---|---|---|
March 18, 2023, 15:40:00 to March 18, 2023, 17:30:00 |
Pay-per-use |
1 hour and 50 minutes |
|
|
Total: $0.52 USD |
March 18, 2023, 17:30:00 to March 19, 2023, 08:30:00 |
Pay-per-use |
16 hours (The node is stopped.) |
|
|
Total: $3.02 USD |
March 19, 2023, 08:30:00 to March 19, 2023, 09:40:00 |
Pay-per-use |
1 hour and 10 minutes |
|
|
Total: $0.32 USD |
March 19, 2023, 09:40:00 to March 20, 2023, 11:10:00 |
Pay-per-use |
25 hours and 30 minutes |
|
|
Total: $9.23 USD |
March 20, 2023, 11:10:00 to April 20, 2023, 23:59:59 |
Yearly/Monthly |
One month |
|
|
Total: $175.33 USD |
*In pay-per-use billing mode, the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.
The total price of the node is 0.52 + 3.02 + 0.32 + 9.23 + 175.33 = $188.42 USD.
Billing Analysis of a Load Balancer
Usage Period |
Billing Mode |
Billing Factor |
Configuration |
Unit price |
Price* |
---|---|---|---|---|---|
March 19, 2023, 09:20:00 to March 20, 2023, 10:20:00 |
Pay-per-use |
25 hours, 5 GB public network traffic |
|
|
Total: $2.15 USD |
*In pay-per-use billing mode, the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.
The total price for the load balancer is $2.15 USD.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.