All Products
Search
Document Center

Elastic Container Instance:DataCaches

Last Updated:Sep 21, 2023

This topic describes the billing rules for DataCaches and provides a billing example.

Description

You can pull a large amount of data, such as training models, that is required by your business from DataCaches in advance. When you create elastic container instances, you can mount and use the data. This eliminates the need to pull data during creation of the instance and accelerates the creation process. A DataCache corresponds to a snapshot. The following part describes the billable items involved in creating and using a DataCache, and the billing rules for the billable items. For more information about DataCaches, see Overview.

  • Create a DataCache

    Billable item

    Billing

    References

    Temporary resources (the elastic container instance and the disk that are used to create the DataCache)

    The system automatically creates a temporary elastic container instance and a temporary disk that are used to create the DataCache. The instance provides 2 vCPUs and 4 GiB of memory. By default, the disk is an enhanced SSD (ESSD) of performance level 1 (PL1). After the DataCache is created, the temporary instance and disk are automatically released and no longer billed.

    • Billing method: pay-as-you-go.

    • Billing formula: Price = (Unit price of vCPUs × 2 + Unit price of memory × 4 + Unit price of disks × Storage capacity of the disk) × The run duration of the instance.

    • Description of the formula:

      • Unit price of resources

      • Storage capacity of the disk: is equal to the size of the DataCache.

      • The run duration of the instance: The run duration of the instance varies based on the size of the DataCache. To create a DataCache, the temporary elastic container instance needs to pull data. The temporary instance requires a longer period of time to pull a larger amount of data. As a result, the run duration of the temporary instance is longer if you create a DataCache that contains a larger amount of data.

    The snapshot

    A DataCache corresponds to a snapshot. The lifecycle of the snapshot overlaps the lifecycle of the DataCache. To retain the DataCache, you must pay for the snapshot storage.

    Snapshots

  • Use a DataCache

    Billable item

    Billing

    References

    The disk

    When you use a DataCache to create an elastic container instance, the system mounts a pay-as-you-go PL1 ESSD to the instance. You can define the PL level. The storage capacity of the disk is equal to the size of the DataCache. The disk is created and released along with the elastic container instance. You must pay for the elastic container instance and the disk.

    Block storage devices

Billing example

Note

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

For example, you create a DataCache that is 20 GiB in size in China (Hangzhou) and retain the DataCache for three days. During the creation process, the temporary instance (including the disk) runs for 5 minutes (300 seconds). The storage capacity of the snapshot that corresponds to the DataCache is 15 GiB.

The prices in creating the DataCache include:

  • Price of the temporary resources: (0.0000077 × 2 + 0.00000096 × 4 + 0.05/100/3600 × 20) × 300 = USD 0.006605.

  • Price of the snapshot: 0.02/30 × 15 × 3 = USD 0.03.

Total creation price = Price of the temporary resources + Price of the snapshot = 0.006605 + 0.03 = USD 0.036605

If you use the DataCache to create an elastic container instance and the instance runs for three hours, you must pay for the instance and the disk. The price of the disk is the usage price of the DataCache. Total price = 0.05/100 × 20 × 3 = USD 0.03.