This topic describes the billing rules and provides a billing example for ApsaraDB.
Billing rules
ApsaraDB is billed based on three dimensions: capacity, read operations, and write operations.
Billable item | Description | Billing period | Billing formula |
|---|---|---|---|
Capacity | Billed based on the peak capacity per day. | Billed daily. The fee is automatically deducted from your account. | Peak daily capacity × Unit price |
Read operand | Billed based on the number of read (query) operations. One read operation is counted for every 4 KB of data read from a data table. The number of operations is rounded up. For example, reading 7.6 KB of data is counted as two read operations. | Billed daily. The fee is automatically deducted from your account. | Number of read operations × Unit price |
Write Operand | Billed based on the number of write (add, delete, or modify) operations. One write operation is counted for every 1 KB of data written to a data table. The number of operations is rounded up. For example, writing 1.8 KB of data is counted as two write operations. | Billed daily. The fee is automatically deducted from your account. | Number of write operations × Unit price |
Billing example
The following example shows how to calculate the daily charges using pay-as-you-go unit prices.
Example 1
Capacity | Read the operand | Write operand | Daily bill |
|---|---|---|---|
2 GB | 100,000 | 50,000 | CNY 0.54 |
Calculation formula:
| |||