Manage time series storage configuration

更新时间:
复制 MD 格式

You can configure the retention period and read/write IOPS ratio for time series storage. By default, IOPS is allocated with a 90% write and 10% read ratio. This topic describes how to update your storage configuration.

Limits

  • The minimum read/write IOPS ratio is 50%, which means equal proportions of read and write operations.

  • Storage retention period

    • Default duration. For Enterprise instances created after December 1, 2022, the default retention period is 365 days. For instances created before December 1, 2022, the default is 30 days. Public instances use a default retention period of 30 days.

    • The shortest retention period is 7 days. To disable expiration, set it to -1. After the retention period ends or storage capacity is exceeded, IoT Platform deletes the oldest data.

    • You can modify the retention period up to three times per hour. If you reduce the retention period, IoT Platform begins deleting the oldest data one hour after the update completes.

    • IoT Platform uses asynchronous cleanup for time series storage. Although deleted data might temporarily appear in queries, query results are not guaranteed to be stable.

Set storage retention period

  1. Log on to the IoT Platform console.

  2. On the Instance Overview page, find your Enterprise instance and click it to open the Instance Details page.

  3. In the left navigation pane, choose Data Service > Data Storage.

  4. On the Time Series Storage tab, click the Storage Configuration tab.

  5. Click Set next to Storage Retention Period.

  6. In the dialog box that appears, enter the number of days and click Confirm.

    Important

    The minimum value is 7 days. Use -1 to disable expiration.

Set IOPS ratio for time series data storage

  1. Log on to the IoT Platform console.

  2. On the Instance Overview page, find your Enterprise instance and click it to open the Instance Details page.

  3. In the left navigation pane, choose Data Service > Data Storage.

  4. On the Time Series Storage tab, click the Storage Configuration tab.

  5. Click Set next to IOPS Ratio.

  6. In the dialog box that appears, enter the Read IOPS Percentage and click Confirm.

    Important

    You can set the Read IOPS Percentage to 10%, 20%, 30%, 40%, or 50%.

After the update succeeds, IOPS is reallocated based on the new Read IOPS Percentage.

References

QueryDevicesHotStorageData: Query time series data for devices.

For cloud API invocation methods, see Cloud Development Guide. You can view the endpoint URL for calling Alibaba Cloud services on the Storage Configuration tab.