All Products
Search
Document Center

IoT Platform:Overview of Time Series Data Storage

Last Updated:Oct 16, 2024

DataService Studio on the IoT Platform offers a data storage feature for storing device time series data, including Thing Specification Language (TSL) data (properties, services, and events) reported by devices, as well as custom topic data defined by time series data storage rules. This topic provides an introduction to the concepts and application of time series data storage.

Related Concepts

Term

Description

Time Series Data Storage IOPS

Refers to the total number of data rows that can be read from and written to per second.

Note

Each property, service, or event is counted as one data row. A message containing multiple properties, services, or events will result in multiple data rows.

By default, each instance is allocated 100 IOPS. You can select the appropriate IOPS based on your business requirements when purchasing or upgrading an instance.

IOPS is typically split into 90% for writes and 10% for reads. For instance, with 1,000 IOPS, the maximum writes would be 900, and reads would be 100. Write and read IOPS for time series data are tallied separately.

You can adjust the IOPS ratio to suit your business needs, but the read ratio must not exceed 50%.

Time Series Data Storage Space

All device-related TSL data and data defined by time series data storage rules are stored in a unified storage space on the IoT Platform.

Each instance comes with 1 GB of storage space by default. Additional space can be selected to meet your business needs during purchase or upgrade.

The storage capacity for all time series data is aggregated.

Feature Description

In regions such as China (Shanghai), China (Beijing), China (Shenzhen), Japan (Tokyo), Singapore, and US (Virginia), the time series data storage feature is supported by instances of the Enterprise IoT Platform. For a detailed description of instances, see Differences in Types and Features of Enterprise Edition Instances.

  • Reporting and querying device time series data are subject to IOPS and storage space limits.

  • The default retention period for time series data is 365 days.

Limits

Limit Item

Description

Limit

Time Series Data Storage Rules

The maximum number of rules per instance for storing time series data.

1,000

Custom Topic

The maximum number of topics that can be defined under a single rule.

1,000

Usage Instructions

  • Acquire the necessary IOPS and storage space for time series data according to your needs. For more information, see Purchase Enterprise Edition Instances.

  • By default, device-reported TSL data is automatically stored. You can disable this feature for specific TSL data under a particular product.

  • To store device-reported custom topic data, you must manually create time series data storage rules.

  • Utilize the relevant APIs to write and query device time series data. For a list of specific APIs, see:

    API

    Description

    WriteDevicesHotStorageData

    Write custom topic data to time series data storage.

    QueryDevicesHotStorageDataStatus

    Query the status of device time series data snapshots.

    QueryDevicesHotStorageData

    Query stored device time series data.

  • DataService Studio automatically cleans up expired time series data based on the default expiration limit. You can modify the data retention period as needed.

  • Monitor the resource usage of time series data IOPS and storage space under your instance and configure alert rules accordingly.