tencent cloud

Cloud Object Storage

Metadata Acceleration Bucket Lifecycle

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2025-12-08 11:44:38
COS metadata-accelerated buckets are compatible with COS lifecycle capabilities and are suitable for scenarios such as data warehousing and cold and hot data tiering.The metadata acceleration bucket supports using the COS console and API to configure lifecycle rules. For specific usage, see: COS Lifecycle Overview.

Differences From COS Lifecycle

Metadata acceleration buckets have the following differences from COS bucket lifecycle. Please note when using:
1. Specification limits: The metadata acceleration bucket has a limit of 1,000 lifecycle rules per single bucket. If a unique scenario requires increasing this limit, please contact us.
2. Update time: The metadata acceleration bucket lifecycle uses the latest file update time as the basis for tiering or deletion. The latest time among the file's MTime, ATime, and CTime in the COS metadata acceleration backend is used as the file update time. Specifying a particular time (MTime, ATime, CTime) as the tiering basis is currently not supported. For example, if you create a file text.txt on June 1 and access it again on June 10, with no subsequent operations on this file, then configure a lifecycle rule on June 11 to tier text.txt to STANDARD_IA 10 days after the update. At this point, the lifecycle scan determines the file's MTime as June 1 and ATime as June 10, making the latest update time June 10. The file will be tiered to STANDARD_IA storage on June 20.
Note:
To ensure the best read/write performance, COS metadata acceleration does not enable ATime tracing by default. If you need to use the ATime feature, contact us.
To avoid lifecycle management being executed earlier than the specified time, please refer to Recycle Bin Clearing Mechanism before using lifecycle settlement or removing files (such as .Trash).
3. File prefix: The metadata acceleration bucket lifecycle supports prefix filtering, which only allows filling in as a directory and does not currently support the prefix exclusion feature. When configuring a prefix, there is no need to include / before and after the path, as the COS backend will default to treating this path as a directory. Additionally, since prefixes only support directories, the path wildcard functionality in ordinary COS buckets is not currently supported. For example, your bucket has the following two paths:
user/hive/warehouse/test.db/test_table/
user/hive/warehouse/test.db/test_table2/
If you configure the file prefix in the lifecycle rule as user/hive/warehouse/test.db/test_table and match this path as a directory, only the first path will be hit, and it will not take effect on test_table2.
4. Currently, metadata acceleration buckets support one-way file settlement in the following sequence:
Single-AZ metadata acceleration bucket: STANDARD > STANDARD_IA > ARCHIVE > DEEP_ARCHIVE
Multi-AZ metadata acceleration bucket: MAZ_STANDARD > MAZ_STANDARD_IA

Usage

Metadata acceleration buckets currently support the use of COS console and S3 Lifecycle API to configure lifecycle rules.

Configuring in the Console

The process of configuring via console is as follows:

Configuring Via API

Metadata-accelerated buckets reuse COS lifecycle capabilities and support using the COS Lifecycle interface to enable lifecycle configuration. Due to the feature of metadata acceleration buckets, some fields in the API differ from COS APIs. For specific calling methods, see the following API examples:


Ajuda e Suporte

Esta página foi útil?

comentários