Tair Serverless KV is billed based on compute resource fees (RCU/WCU) and storage space fees.
Billable items
Compute resource consumption (pay-per-operation)
Read operations (RCU): One Read Capacity Unit (RCU) is consumed for every 4 KB of data read in a request. A read operation for data smaller than 4 KB is counted as 4 KB.
Example: Reading 1 KB or 4 KB of data consumes 1 RCU. Reading 7 KB (4 KB + 3 KB) of data consumes 2 RCUs.
Write operations (WCU): One Write Capacity Unit (WCU) is consumed for every 512 B of data written in a request. A write operation for data smaller than 512 B is counted as 512 B.
Example: Writing 200 B of data consumes 1 WCU. Writing 1 KB (1024 B = 512 B × 2) of data consumes 2 WCUs. Writing 1.2 KB (1228 B ≈ 512 B × 2.4) of data consumes 3 WCUs.
Storage space usage
Billing is based on the actual storage space that the instance uses, measured in GB. Usage is measured hourly. If the usage is less than 20 GB, it is billed as 20 GB. If the usage is more than 20 GB, it is rounded up to the nearest integer GB.
Example: 15 GB of storage is billed as 20 GB. 50.2 GB of storage is billed as 51 GB.
Pricing
Available regions | RCU | WCU | Storage |
China North 2 (Beijing), China East 2 (Shanghai), China East 1 (Hangzhou), China South 1 (Shenzhen) | USD 0.086 per million requests | USD 0.13 per million requests | USD 0.00029 per GB-hour |
Indonesia (Jakarta), Singapore | USD 0.1 per million requests | USD 0.15 per million requests | USD 0.00035 per GB-hour |
Billing methods
Billable item | RCU | WCU | Storage |
Usage statistics |
|
| |
Daily fee calculation formula | Fee = (ROUNDUP(Total daily consumption / 1,000,000)) × Unit price | Fee = (Sum of hourly storage usage in GB for the day) × Unit price | |
Billing cycle | Daily | Daily | |
Billing examples
Example 1: An instance in the China North 2 (Beijing) region consumes 1.1 million RCUs and 0.2 million WCUs in a day. The storage usage is 30 GB for 18 hours and 50 GB for 6 hours.
RCU fee: 1.1 million requests are billed as 2 million requests. Fee: 2 million × USD 0.086/million = USD 0.172
WCU fee: 0.2 million requests are billed as 1 million requests. Fee: 1 million × USD 0.13/million = USD 0.13
Storage fee:
30 GB for 18 hours: 30 GB × 18 hours = 540 GB-hours.
50 GB for 6 hours: 50 GB × 6 hours = 300 GB-hours.
Total storage fee: (540 GB-hours + 300 GB-hours) × USD 0.00029/GB-hour = USD 0.2436
Total daily fee: USD 0.172 (RCU) + USD 0.13 (WCU) + USD 0.2436 (Storage) = USD 0.5456.
Example 2: An instance in the China East 2 (Shanghai) region consumes 11.8 million RCUs and 5.3 million WCUs in a day. The storage usage is 500 GB for 6 hours, 450 GB for 13 hours, and 600 GB for 5 hours.
RCU fee: 11.8 million requests are billed as 12 million requests. Fee: 12 million × USD 0.086/million = USD 1.032
WCU fee: 5.3 million requests are billed as 6 million requests. Fee: 6 million × USD 0.13/million = USD 0.78
Storage fee:
500 GB for 6 hours: 500 GB × 6 hours = 3,000 GB-hours.
450 GB for 13 hours: 450 GB × 13 hours = 5,850 GB-hours.
600 GB for 5 hours: 600 GB × 5 hours = 3,000 GB-hours.
Total storage fee: (3,000 GB-hours + 5,850 GB-hours + 3,000 GB-hours) × USD 0.00029/GB-hour = USD 3.4365
Total daily fee: USD 1.032 (RCU) + USD 0.78 (WCU) + USD 3.4365 (Storage) = USD 5.2485.