Billing Examples
Billing Scenario
A user purchased a pay-per-use RDS for MySQL 8.0 DB instance in CN-Hong Kong at 15:30:00 on March 18, 2023. The DB instance configuration is as follows:
- Instance class: general-purpose, 2 vCPUs | 4 GB, primary/standby
- Storage space: cloud SSD, 40 GB
- EIP bandwidth: 6 Mbit/s
After a period of time, the user found that the current instance class no longer met service requirements and scaled up the storage to 80 GB at 8:00:00 on March 19, 2023, then updated the instance class to 8 vCPUs | 16 GB and enabled Monitoring by Seconds at 9:00:00 on March 20, 2023. Since the user wanted to use the DB instance long term, the user then changed the instance to yearly/monthly billing with a one-month duration at 10:30:00 on the same day. So how much will the user be billed for this DB instance in March and April?
Billing Analysis
The total price of this DB instance involves both pay-per-use and yearly/monthly usage:
- Pay-per-use usage: March 18, 2023, 15:30:00 to March 20, 2023, 10:30:00
- From March 18, 2023, 15:30:00 to March 19, 2023, 8:00:00
- Instance class: general-purpose, 2 vCPUs | 4 GB, primary/standby
- Storage space: cloud SSD, 40 GB (with 40 GB backup space for free)
- Used backup space: 30 GB (free)
- EIP bandwidth: 6 Mbit/s
- From March 19, 2023, 8:00:00 to March 20, 2023, 9:00:00
- Instance class: general-purpose, 2 vCPUs | 4 GB, primary/standby
- Storage space: cloud SSD, 80 GB (with 80 GB backup space for free)
- Used backup space: another 40 GB (free)
- EIP bandwidth: 6 Mbit/s
- From March 20, 2023, 9:00:00 to March 20, 2023, 10:30:00
- Instance class: general-purpose, 8 vCPUs | 16 GB, primary/standby
- Storage space: cloud SSD, 80 GB (with 80 GB backup space for free)
- Used backup space: another 15 GB (5 GB was billed on a pay-per-use basis from March 20, 2023, 10:00:00 to March 20, 2023, 10:30:00)
- EIP bandwidth: 6 Mbit/s
- Monitoring by Seconds: one-second monitoring
- From March 18, 2023, 15:30:00 to March 19, 2023, 8:00:00
- Yearly/monthly usage: March 20, 2023, 10:30:00 to April 20, 2023, 23:59:59
- Instance class: general-purpose, 8 vCPUs | 16 GB, primary/standby
- Storage space: cloud SSD, 80 GB (with 80 GB backup space for free)
- Used backup space: No new backup space is used. (5 GB was billed on a pay-per-use basis from March 20, 2023, 10:30:00 to April 20, 2023, 23:59:59)
- EIP bandwidth: 6 Mbit/s
- Monitoring by Seconds: one-second monitoring
- Billed duration: one month
The prices in the figure are just examples. The actual prices are those displayed on RDS Pricing Details.
For pay-per-use billing, decimal numerals on the price calculator are rounded off and are accurate to two decimal places. If the fee is less than $0.01 USD (after rounding off), $0.01 USD will be displayed.
Pay-per-use
From March 18, 2023, 15:30:00 to March 19, 2023, 8:00:00, a DB instance with 2 vCPUs, 4 GB of memory, and 40 GB of storage was used for 16.5 hours, so the price would be calculated as follows:
From March 19, 2023, 8:00:00 to March 20, 2023, 9:00:00, a DB instance with 2 vCPUs, 4 GB of memory, and 80 GB of storage was used for 25 hours, so the price would be calculated as follows:
From March 20, 2023, 9:00:00 to March 20, 2023, 10:30:00, a DB instance with 8 vCPUs, 16 GB of memory, and 80 GB of storage was used for 1.5 hours, so the price would be calculated as follows:
Yearly/Monthly
From March 20, 2023, 10:30:00 to April 20, 2023, 23:59:59, a DB instance purchased using yearly/monthly billing was used for one month, so the price would be calculated as follows:
From March to April, the total price of this DB instance is $547.28 USD (4.56 + 7.7 + 1.28 + 533.74).
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot