DataCache billing

更新时间:
复制 MD 格式

DataCache billing covers two phases: creating a DataCache and using it. Each phase involves different billable items.

For an overview of DataCaches, see Overview.

How billing works

A DataCache lets you pull large datasets — such as machine learning training models — into a snapshot before creating Elastic Container Instances (ECIs). When you create an ECI from a DataCache, the data is already available locally, which eliminates the pull step and speeds up instance startup.

A DataCache corresponds to a snapshot. Its lifecycle matches the snapshot lifecycle. Snapshot billing applies for as long as the DataCache exists and stops when you delete the DataCache.

Billable items

Creating a DataCache

Billable itemDetailsReferences
Temporary resourcesThe system automatically creates a temporary ECI (2 vCPUs, 4 GiB memory) and a temporary disk (by default, a PL1 Enhanced SSD (ESSD)) to build the DataCache. Both are released automatically after the DataCache is created and are no longer charged. Billing method: pay-as-you-go. See the billing formula below.Elastic container instances, Block storage devices
SnapshotThe DataCache is stored as a snapshot. Snapshot charges apply for as long as the DataCache exists.Snapshots

Billing formula for temporary resources:

Price = (Unit price of vCPUs × 2 + Unit price of memory × 4 + Unit price of disk × disk capacity) × run duration
ResourceUnit price
vCPUUSD 0.0000077/second
MemoryUSD 0.00000096/GiB/second
Disk (PL1 ESSD)See the Storage tab on the Pricing tab of the

Formula variables:

  • Disk capacity equals the size of the DataCache.

  • Run duration is the time the temporary instance takes to pull the data. A larger DataCache takes longer to process, which increases the run duration and temporary resource cost. Billing for temporary resources stops when the DataCache is created successfully.

Using a DataCache

Billable itemDetailsReferences
DiskWhen you create an ECI from a DataCache, the system mounts a pay-as-you-go PL1 ESSD with storage capacity equal to the DataCache size. You can change the performance level (PL). The disk is created and released with the ECI.Block storage devices

Billing example

Note

The following example is for reference only. The prices in your bills take precedence.

Scenario: A 20 GiB DataCache created in China (Hangzhou), retained for 3 days. The temporary instance runs for 5 minutes (300 seconds). The corresponding snapshot stores 15 GiB.

Creation costs

Temporary resource charges:

ItemCalculationSubtotal
vCPUUSD 0.0000077 × 2 vCPUs × 300 secondsUSD 0.00462
MemoryUSD 0.00000096 × 4 GiB × 300 secondsUSD 0.001152
Disk (PL1 ESSD)USD 0.05/100/3600 × 20 GiB × 300 secondsUSD 0.000833
Temporary resource totalUSD 0.006605

Snapshot charges:

ItemCalculationSubtotal
Snapshot storageUSD 0.02/30 × 15 GiB × 3 daysUSD 0.03

Total creation cost: USD 0.006605 + USD 0.03 = USD 0.0366050.040256 + 0.18 = 0.220256 CNY

Usage costs

When an ECI runs for 3 hours using this DataCache, the disk charge is:

ItemCalculationSubtotal
Disk (PL1 ESSD, 20 GiB)USD 0.05/100 × 20 GiB × 3 hoursUSD 0.03